-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
wontfixThis will not be worked onThis will not be worked on
Description
orGUI may crash when changing the detector type in the 'Machine parameters' menu. The following error message is appearing:
Uncaught exception:
File "C:\Users\supex679\AppData\Local\anaconda3\envs\orgui_git\Lib\site-packages\pyFAI\gui\dialog\DetectorSelectorDialog.py", line 679, in __modelChanged
if isinstance(self.__detector, model):
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union
Judging from the output it seems like the error is caused by the pyFAI package (v. 2025.12.1) and not caused by orGUI. Therefore no action is necessary and we can probably only wait until the bug is fixed in pyFAI.
The error appears when one selects any detector manufacturer other than the active one. By first clicking Custom detector -> from file and only then selecting the intended detector manufacturer, the bug can be avoided. Besides that, I suggest to always select the detector in the config file.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
wontfixThis will not be worked onThis will not be worked on