openflexure-microscope-server/openflexure_microscope
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
..
api Fix handling of missing CSM matrix 2021-04-28 22:29:56 +01:00
camera Watch for broken frames using JPEG end bytes, and log error 2020-12-08 18:07:05 +00:00
captures Static type analysis 2020-11-30 13:36:45 +00:00
devel Removed old JSONResponse class 2020-11-12 13:50:48 +00:00
rescue Removed unused import 2021-01-07 10:09:43 +00:00
stage Formatting fixes 2021-03-31 09:40:31 +01:00
__init__.py Started basic rescue script 2020-03-03 16:13:21 +00:00
config.py Reverted logging style 2020-11-12 15:45:58 +00:00
json.py Removed deprecated np.float 2021-03-30 17:40:19 +01:00
microscope.py Allow MissingStage to be explicitly selected 2021-02-04 20:31:20 +00:00
paths.py Static type analysis 2020-11-30 13:36:45 +00:00
utilities.py Minor linting improvements 2021-04-27 11:17:11 +01:00