Commit 88647962 authored by Joel Collins's avatar Joel Collins
Browse files

Closing microscope checks if hardware is attached

parent f42dcf8b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -42,7 +42,9 @@ class Microscope(object):

    def close(self):
        """Shut down the microscope hardware."""
        if self.camera:
            self.camera.close()
        if self.stage:
            self.stage.close()

    def attach(self, camera: StreamingCamera, stage: OpenFlexureStage, apply_config: bool=True):