Skip to content

Commit c5e5270

Browse files
committed
Clarity now returns {} if no camera instead of {'camera': None}
1 parent 2d70e0f commit c5e5270

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

microscope/filterwheels/aurox.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,10 @@ def _c_process_data(self, data):
171171
@property
172172
def devices(self) -> Mapping[str, microscope.devices.Device]:
173173
"""Devices property, required by ControllerDevice interface."""
174-
return {'camera': self._cam}
174+
if self._cam:
175+
return {'camera': self._cam}
176+
else:
177+
return {}
175178

176179
def set_mode(self, mode: Mode) -> None:
177180
"""Set the operation mode"""

0 commit comments

Comments
 (0)