Implement hardware locks
This commit is contained in:
parent
a40cb9b9f6
commit
8292ebf7c7
10 changed files with 268 additions and 170 deletions
1
openflexure_microscope/stage/__init__.py
Normal file
1
openflexure_microscope/stage/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
from . import openflexure
|
||||
10
openflexure_microscope/stage/openflexure.py
Normal file
10
openflexure_microscope/stage/openflexure.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from openflexure_stage import OpenFlexureStage
|
||||
|
||||
from openflexure_microscope.lock import StrictLock
|
||||
|
||||
# TODO: Implement lock on movement
|
||||
class Stage(OpenFlexureStage):
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.lock = StrictLock(timeout=2) #: Strict lock controlling thread access to camera hardware
|
||||
|
||||
OpenFlexureStage.__init__(self, *args, **kwargs)
|
||||
Loading…
Add table
Add a link
Reference in a new issue