Commit 5e86b421 authored by Josef Brandt's avatar Josef Brandt

Hotfix for correct spectra import in gepardevaluation

Plus error message in case of wronlgy specified instrument
parent 467d0c8a
...@@ -27,7 +27,7 @@ from typing import List, TYPE_CHECKING ...@@ -27,7 +27,7 @@ from typing import List, TYPE_CHECKING
from .particleAndMeasurement import Particle, Measurement from .particleAndMeasurement import Particle, Measurement
specImportEnabled: bool = True specImportEnabled: bool = True
try: try:
from ..gepardevaluation.analysis import importSpectra from ..analysis import importSpectra
except ModuleNotFoundError: except ModuleNotFoundError:
specImportEnabled = False specImportEnabled = False
......
...@@ -112,4 +112,7 @@ elif interface == "THERMO_FTIR": ...@@ -112,4 +112,7 @@ elif interface == "THERMO_FTIR":
InstrumentControl = ThermoFTIRCom InstrumentControl = ThermoFTIRCom
simulatedRaman = False simulatedRaman = False
else:
from ..errors import showErrorMessageAsWidget
showErrorMessageAsWidget(f'Invalid instrument: {interface} defined in gepard.cfg.\nPlease check!')
InstrumentControl.setVideoScaleFactor(videoImgScale) InstrumentControl.setVideoScaleFactor(videoImgScale)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment