We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1628ecd commit 404e03dCopy full SHA for 404e03d
pyscope/observatory/observatory.py
@@ -1168,15 +1168,11 @@ def save_last_image(
1168
if not self.camera.ImageReady:
1169
logger.exception("Image is not ready, cannot be saved")
1170
return False
1171
-
+
1172
# Read out the image array
1173
img_array = self.camera.ImageArray
1174
1175
- if (
1176
- img_array is None
1177
- or len(img_array) == 0
1178
1179
- ):
+ if img_array is None or len(img_array) == 0 or len(img_array) == 0:
1180
logger.exception("Image array is empty, cannot be saved")
1181
1182
0 commit comments