Blackened
This commit is contained in:
parent
4e7606aa0c
commit
dd82528d78
3 changed files with 51 additions and 49 deletions
|
|
@ -90,7 +90,9 @@ api_microscope.attach(api_camera, api_stage)
|
|||
|
||||
# Restore loaded capture array to camera object
|
||||
logging.debug("Restoring captures...")
|
||||
api_microscope.camera.images = build_captures_from_exif(api_microscope.camera.paths["default"])
|
||||
api_microscope.camera.images = build_captures_from_exif(
|
||||
api_microscope.camera.paths["default"]
|
||||
)
|
||||
|
||||
logging.debug("Microscope successfully attached!")
|
||||
|
||||
|
|
|
|||
|
|
@ -143,17 +143,13 @@ class Microscope:
|
|||
self.attach_plugins(self.plugin_maps)
|
||||
|
||||
def has_real_stage(self):
|
||||
if hasattr(self, "stage") and not isinstance(
|
||||
self.stage, MockStage
|
||||
):
|
||||
if hasattr(self, "stage") and not isinstance(self.stage, MockStage):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def has_real_camera(self):
|
||||
if hasattr(self, "camera") and not isinstance(
|
||||
self.camera, MockStreamer
|
||||
):
|
||||
if hasattr(self, "camera") and not isinstance(self.camera, MockStreamer):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
|
|
|||
|
|
@ -7,7 +7,11 @@ import logging
|
|||
|
||||
from openflexure_microscope.camera.base import generate_basename
|
||||
|
||||
from openflexure_microscope.devel import MicroscopePlugin, update_task_progress, update_task_data
|
||||
from openflexure_microscope.devel import (
|
||||
MicroscopePlugin,
|
||||
update_task_progress,
|
||||
update_task_data,
|
||||
)
|
||||
|
||||
from .api import TileScanAPI
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue