Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading 'detector config file' again failed. #7

Open
zhanzhang3 opened this issue Mar 11, 2024 · 1 comment
Open

loading 'detector config file' again failed. #7

zhanzhang3 opened this issue Mar 11, 2024 · 1 comment

Comments

@zhanzhang3
Copy link
Contributor

On the GUI interface, after all the field filled in, if I reload the "detector config file", either a different one or the same one, I got the following error before program terminated:

NoneType: None
Traceback (most recent call last):
File "C:\Users\zhanzhang\AppData\Local\anaconda3\envs\rsmap3d\Lib\site-packages\rsMap3D\gui\input\usesxmldetectorconfig.py", line 138, in _currentDetectorChanged
self.updateROIandNumAvg()
File "C:\Users\zhanzhang\AppData\Local\anaconda3\envs\rsmap3d\Lib\site-packages\rsMap3D\gui\input\usesxmldetectorconfig.py", line 293, in updateROIandNumAvg
detector = self.detConfig.getDetectorById(str(self.currentDetector))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zhanzhang\AppData\Local\anaconda3\envs\rsmap3d\Lib\site-packages\rsMap3D\datasource\DetectorGeometry\detectorgeometrybase.py", line 79, in getDetectorById
raise DetectorConfigException("Detector " +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rsMap3D.exception.rsmap3dexception.DetectorConfigException: Detector not found in detector config file

@zhanzhang3
Copy link
Contributor Author

I think I figured out the problem -- when changing to a different detector file, Detector List will be cleared first, at which time, _currentDetectorChanged function will be triggered and it tries to set ROI etc again. Need to check if the list is empty or not here -- if it is empty, skip the ROI setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant