Merge branch 'allow-dummy-stage' into 'master'
Allow MissingStage to be explicitly selected See merge request openflexure/openflexure-microscope-server!112
This commit is contained in:
commit
de9b34e332
1 changed files with 8 additions and 0 deletions
|
|
@ -169,6 +169,14 @@ class Microscope:
|
||||||
except Exception as e: # pylint: disable=W0703
|
except Exception as e: # pylint: disable=W0703
|
||||||
logging.error(e)
|
logging.error(e)
|
||||||
logging.warning("No compatible Sangaboard hardware found.")
|
logging.warning("No compatible Sangaboard hardware found.")
|
||||||
|
elif stage_type in ("MissingStage",):
|
||||||
|
logging.warning(
|
||||||
|
"The stage is set to MissingStage in "
|
||||||
|
"configuration, which disables any physical stage."
|
||||||
|
)
|
||||||
|
self.stage = MissingStage()
|
||||||
|
configuration["stage"]["type"] = "MissingStage"
|
||||||
|
self.configuration_file.save(configuration)
|
||||||
else:
|
else:
|
||||||
logging.warning("The stage type is incorrectly defined.")
|
logging.warning("The stage type is incorrectly defined.")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue