Loading openflexure_microscope/api/microscope.py +1 −4 Original line number Diff line number Diff line from openflexure_microscope import Microscope from openflexure_microscope.camera.capture import build_captures_from_exif import logging Loading @@ -8,8 +7,6 @@ default_microscope = Microscope() # Restore loaded capture array to camera object logging.debug("Restoring captures...") default_microscope.camera.images = build_captures_from_exif( default_microscope.camera.paths["default"] ) default_microscope.camera.rebuild_captures() logging.debug("Microscope successfully attached!") openflexure_microscope/camera/base.py +4 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ import logging from abc import ABCMeta, abstractmethod from .capture import CaptureObject from .capture import CaptureObject, build_captures_from_exif from openflexure_microscope.utilities import entry_by_uuid from labthings.core.lock import StrictLock Loading Loading @@ -177,6 +177,9 @@ class BaseCamera(metaclass=ABCMeta): shutil.rmtree(self.paths["temp"]) logging.debug("Cleared {}.".format(self.paths["temp"])) def rebuild_captures(self): self.images = build_captures_from_exif(self.paths["default"]) # START AND STOP WORKER THREAD def start_worker(self, timeout: int = 5) -> bool: Loading Loading
openflexure_microscope/api/microscope.py +1 −4 Original line number Diff line number Diff line from openflexure_microscope import Microscope from openflexure_microscope.camera.capture import build_captures_from_exif import logging Loading @@ -8,8 +7,6 @@ default_microscope = Microscope() # Restore loaded capture array to camera object logging.debug("Restoring captures...") default_microscope.camera.images = build_captures_from_exif( default_microscope.camera.paths["default"] ) default_microscope.camera.rebuild_captures() logging.debug("Microscope successfully attached!")
openflexure_microscope/camera/base.py +4 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ import logging from abc import ABCMeta, abstractmethod from .capture import CaptureObject from .capture import CaptureObject, build_captures_from_exif from openflexure_microscope.utilities import entry_by_uuid from labthings.core.lock import StrictLock Loading Loading @@ -177,6 +177,9 @@ class BaseCamera(metaclass=ABCMeta): shutil.rmtree(self.paths["temp"]) logging.debug("Cleared {}.".format(self.paths["temp"])) def rebuild_captures(self): self.images = build_captures_from_exif(self.paths["default"]) # START AND STOP WORKER THREAD def start_worker(self, timeout: int = 5) -> bool: Loading