GEPARDEval crashes at the end of Spectra matching
Branch: Gepard+GepardEval
When performing a spectra evaluation on different databases without selecting any spectra processing option, gepard crashes and gives this error message:
starting Gepard Evaluation at: 10 May 2023 16:49:24
resetted contours: 174 ms
Traceback (most recent call last):
File "...\GEPARD\gepard-Gepard+GepardEval\gepardevaluation\analysis\analysisview.py", line 430, in _updateAfterSpectraMatching
self._launchEvaluationWindow(analyzedSpecScanSeries)
File "...\GEPARD\gepard-Gepard+GepardEval\gepardevaluation\analysis\analysisview.py", line 374, in _launchEvaluationWindow
self.specEvalWindow = SpecEvaluationWin(analyzedSpecSeries, forceSaveToDataset=forceSaveAndUpdate)
File "...\GEPARD\gepard-Gepard+GepardEval\gepardevaluation\gui\specEvaluationUI.py", line 124, in __init__
self._updateEvaluationPage()
File "...\GEPARD\gepard-Gepard+GepardEval\gepardevaluation\gui\specEvaluationUI.py", line 199, in _updateEvaluationPage
self._checkBaselineCorrect.isChecked())
File "...\GEPARD\gepard-Gepard+GepardEval\gepardevaluation\gui\specEvaluationUI.py", line 301, in updateToIndices
evalEntry.showMostProbableResult(evalCollection, specInd, hqiThresh, subtractBaseline)
File "...\GEPARD\gepard-Gepard+GepardEval\gepardevaluation\gui\specEvaluationUI.py", line 398, in showMostProbableResult
self._axes.set_title(f"{refName}\n(Spec {specIndex+1}, HQI={round(refHQI)})", fontsize=10)
ValueError: cannot convert float NaN to integer
It seems that the refHQI variable is not set before calling round().
Edited by Thibault Schowing