Started building Microscope plugin system
This commit is contained in:
parent
c87878a7dc
commit
0f47d0dca7
2 changed files with 121 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue