openflexure-microscope-server/openflexure_microscope/api/default_extensions
Richard Bowman 6e7adb66cd Fix handling of missing CSM matrix
The code checks for the camera-stage mapper matrix by looking at its truth value.
However, this is ambiguous because the matrix has many elements.  That means that
if it's missing, we get the expected result, but if it's present
we get an error.

I have avoided dict.get() and instead look it up with [] notation.
This will raise a KeyError if it's missing, which I
handle helpfully.
If the key is present but the value is not castable to an array, we'll
get an exception anyway.
2021-04-28 22:29:56 +01:00
..
picamera_autocalibrate fixed typing error 2021-04-27 20:17:07 +01:00
__init__.py Integrated CSMExtension 2020-12-04 16:05:39 +00:00
autofocus.py Formatting fixes 2021-03-31 09:40:31 +01:00
autostorage.py Fixed get_locations method reference 2020-11-30 16:59:56 +00:00
camera_stage_mapping.py Fix handling of missing CSM matrix 2021-04-28 22:29:56 +01:00
scan.py Fixed tile method reference 2020-11-30 16:57:54 +00:00
zip_builder.py Updated default extensions to subclass structure 2020-11-30 16:41:39 +00:00