niermann / temscript

Python wrapper for the scripting interface of Thermo Fisher Scientific and FEI microscopes.
Other
42 stars 14 forks source link

get_detectors error in STEM mode #4

Closed thomasaarholt closed 3 years ago

thomasaarholt commented 3 years ago

On our Titan G2 in STEM Diffraction mode I get the following error when trying to run .get_detectors().

  File "c:\users\supervisor\documents\python scripts\temscript-master\temscript\
microscope.py", line 192, in get_detectors
    print(info.ShutterModes)
RuntimeError: Expected array bounds of dim 0 to be lower < upper: lower=0, upper=0.

For now I have just commented out the code, since I'm not worried about shutters.

niermann commented 3 years ago

There was a bug occurring when there is only a single ShutterMode. Should be fixed with commit e3f4cf2562b23b48739e2fc89377d42ab83e00d1. Can you test, whether it works with the new code?

thomasaarholt commented 3 years ago

Shall do! :)