Went on a PEP-8 rampage
This commit is contained in:
parent
f99ad30fb6
commit
0948c9308a
36 changed files with 186 additions and 218 deletions
|
|
@ -5,6 +5,7 @@ from openflexure_microscope.lock import StrictLock
|
|||
|
||||
import logging
|
||||
|
||||
|
||||
# TODO: Implement lock on movement
|
||||
class Stage(OpenFlexureStage):
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
@ -16,7 +17,7 @@ class Stage(OpenFlexureStage):
|
|||
|
||||
try:
|
||||
OpenFlexureStage.__init__(self, *args, **kwargs)
|
||||
except SerialException as e:
|
||||
except SerialException:
|
||||
logging.error("No stage found. Aborting stage.")
|
||||
logging.warning("Stage lock can be acquired, but any stage methods will fail and raise exceptions.")
|
||||
|
||||
|
|
@ -25,4 +26,4 @@ class Stage(OpenFlexureStage):
|
|||
Overrides :py:function:`openflexure_stage.stage.OpenFlexureStage._move_rel_nobacklash` to acquire lock first.
|
||||
"""
|
||||
with self.lock:
|
||||
OpenFlexureStage._move_rel_nobacklash(self, *args, **kwargs)
|
||||
OpenFlexureStage._move_rel_nobacklash(self, *args, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue