Skip to content

Commit

Permalink
Merge pull request #169 from pixlise/development
Browse files Browse the repository at this point in the history
Fixing breadboard importer crash for Joel with < 10 spectra in zip, a…
  • Loading branch information
pnemere authored Nov 22, 2023
2 parents 73257c3 + bfce477 commit cc9d495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data-import/data-converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ func SelectImporter(localFS fileaccess.FileAccess, remoteFS fileaccess.FileAcces
}

log.Infof("SelectImporter: Path contains %v files...", len(items))
for c, item := range items {
/*for c, item := range items {
log.Infof(" %v. %v", c+1, item)
}
}*/

// Check if it's a combined dataset
combinedFiles, _ /*imageFileNames*/, _ /*combinedFile1Meta*/, _ /*combinedFile2Meta*/, err := combined.GetCombinedBeamFiles(importPath, log)
Expand Down
3 changes: 3 additions & 0 deletions data-import/internal/data-converters/jplbreadboard/spectra.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ func makeSpectraLookup(inputpath string, spectraFiles []string, singleDetectorMS
spectraLookup := make(dataConvertModels.DetectorSampleByPMC)

reportInterval := len(spectraFiles) / 10
if reportInterval == 0 {
reportInterval = 1
}

c := 1
for idx, f := range spectraFiles {
Expand Down

0 comments on commit cc9d495

Please sign in to comment.