Skip to content

Commit

Permalink
Exclude EM images that have no beam locations (so we dont show SLI sp…
Browse files Browse the repository at this point in the history
…ots in PIXLISE to match FM data pipeline)
  • Loading branch information
Peter Nemere committed Nov 12, 2024
1 parent bd66f97 commit 3a98b7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/dataimport/internal/converters/pixlem/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,14 @@ func importEMData(creatorId string, rtt string, beamLocPath string, hkPath strin
return nil, err
}

// Remove any images which don't have beam locations
for pmc, img := range contextImgsPerPMC {
if _, ok := beamLookup[pmc]; !ok {
logger.Infof("Excluding image due to not having beam locations: %v", img)
delete(contextImgsPerPMC, pmc)
}
}

hkData, err := importerutils.ReadHousekeepingFile(hkPath, 0, logger)
if err != nil {
return nil, err
Expand Down

0 comments on commit 3a98b7e

Please sign in to comment.