Skip to content

Commit

Permalink
Merge pull request #205 from pixlise/development
Browse files Browse the repository at this point in the history
Dataset Import Bug Fixes
  • Loading branch information
RyanStonebraker authored Mar 29, 2024
2 parents 70ae13c + f77f597 commit 40c1a46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ func (h autoImportHandler) handleAutoImportJobStatus(status *protos.JobStatus) {
h.svcs.Log.Errorf("handleAutoImportJobStatus failed to get PseudoIntensities count for scan: %v, job id: %v", status.JobItemId, status.JobId)
} else {
// Only FM and EM datasets will have pseudo intensities, if it's one of those, we check that we have all normal spectra downloaded
if (scan.Instrument == protos.ScanInstrument_PIXL_FM || scan.Instrument == protos.ScanInstrument_PIXL_EM) && normalSpectraCount != pseudoCount {
// NOTE: we're expecting normal spectra to be twice that of psuedo-intensities, because we have A and B detectors!
if (scan.Instrument == protos.ScanInstrument_PIXL_FM || scan.Instrument == protos.ScanInstrument_PIXL_EM) && normalSpectraCount/2 != pseudoCount {
h.svcs.Log.Errorf("handleAutoImportJobStatus scan %v not complete, pseudo intensity count: %v, normal spectra count: %v, job id: %v. New scan notification not sent", status.JobItemId, pseudoCount, normalSpectraCount, status.JobId)
return
}
Expand Down

0 comments on commit 40c1a46

Please sign in to comment.