Fall back to mock stage if Sangastage is missing
This commit is contained in:
parent
465e52d705
commit
bf4cb24cb3
1 changed files with 5 additions and 1 deletions
|
|
@ -88,7 +88,11 @@ class Microscope:
|
||||||
stage_type = configuration["stage"].get("type")
|
stage_type = configuration["stage"].get("type")
|
||||||
stage_port = configuration["stage"].get("port")
|
stage_port = configuration["stage"].get("port")
|
||||||
if stage_type in ("SangaBoard", "SangaStage"):
|
if stage_type in ("SangaBoard", "SangaStage"):
|
||||||
self.stage = SangaStage(port=stage_port)
|
try:
|
||||||
|
self.stage = SangaStage(port=stage_port)
|
||||||
|
except Exception as e:
|
||||||
|
logging.error(e)
|
||||||
|
logging.warning("No compatible Sangaboard hardware found.")
|
||||||
|
|
||||||
### Fallbacks
|
### Fallbacks
|
||||||
if not self.camera:
|
if not self.camera:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue