Started building Microscope plugin system

This commit is contained in:
Joel Collins 2018-11-23 17:13:38 +00:00
parent c87878a7dc
commit 0f47d0dca7
2 changed files with 121 additions and 0 deletions

View file

@ -8,6 +8,8 @@ import numpy as np
from openflexure_stage import OpenFlexureStage
from .camera.pi import StreamingCamera
from .plugins import PluginMount
class Microscope(object):
"""
@ -22,6 +24,9 @@ class Microscope(object):
def __init__(self, camera: StreamingCamera, stage: OpenFlexureStage):
self.attach(camera, stage)
# Create plugin mountpoint
self.plugin = PluginMount(self)
def __enter__(self):
"""Create microscope on context enter."""
return self