From 953a5d7004e738a9c059511b5c2d9f4095001733 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 30 Jan 2020 14:21:18 +0000 Subject: [PATCH] Fixed checking if LST exists --- openflexure_microscope/microscope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/microscope.py b/openflexure_microscope/microscope.py index 1e397339..afdb4d22 100644 --- a/openflexure_microscope/microscope.py +++ b/openflexure_microscope/microscope.py @@ -176,7 +176,7 @@ class Microscope: # Read LST. Returns None if no LST is active lst_arr = self.camera.read_lens_shading_table() - if lst_arr: + if lst_arr is not None: b64_string, dtype, shape = serialise_array_b64(lst_arr) settings_current["camera"]["lens_shading_table"] = {