Skip to content

Commit 84a92ee

Browse files
committed
FlyCapture2_Camera-bugfixes: Fix FlyCapture2CameraWorker so it can return attributes when using a mock camera.
1 parent d98ca39 commit 84a92ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

FlyCapture2Camera/blacs_workers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@ class FlyCapture2CameraWorker(IMAQdxCameraWorker):
350350
def get_attributes_as_dict(self, visibility_level):
351351
"""Return a dict of the attributes of the camera for the given visibility
352352
level"""
353-
return self.camera.get_attributes(visibility_level)
353+
if self.mock:
354+
return IMAQdxCameraWorker.get_attributes_as_dict(self,visibility_level)
355+
else:
356+
return self.camera.get_attributes(visibility_level)
354357

355358

0 commit comments

Comments
 (0)