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

Fall back to mock stage if Sangastage is missing

parent 465e52d7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -88,7 +88,11 @@ class Microscope:
            stage_type = configuration["stage"].get("type")
            stage_port = configuration["stage"].get("port")
            if stage_type in ("SangaBoard", "SangaStage"):
                try:
                    self.stage = SangaStage(port=stage_port)
                except Exception as e:
                    logging.error(e)
                    logging.warning("No compatible Sangaboard hardware found.")

        ### Fallbacks
        if not self.camera: