From 23bf3410f3c2089e3c506951b96afdf83cc44932 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Thu, 13 Jan 2022 14:47:38 +0000 Subject: [PATCH] Code formatting fixes from black --- .../api/default_extensions/autofocus.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openflexure_microscope/api/default_extensions/autofocus.py b/openflexure_microscope/api/default_extensions/autofocus.py index 46879f04..04d98d3b 100644 --- a/openflexure_microscope/api/default_extensions/autofocus.py +++ b/openflexure_microscope/api/default_extensions/autofocus.py @@ -534,10 +534,12 @@ class AutofocusExtension(BaseExtension): missing=5, example=5, description="How long to measure sharpness for after the move", - ) + ), } ) - def measure_settling_time(self, microscope: Optional[Microscope] = None, delay: int = 2, dz: int = 400) -> Dict[str, np.ndarray]: + def measure_settling_time( + self, microscope: Optional[Microscope] = None, delay: int = 2, dz: int = 400 + ) -> Dict[str, np.ndarray]: """Make a Z move down then up by dz, then pause for delay while monitoring sharpness. This is useful so we can see how long we need to wait for the sharpness value to converge""" if not microscope: @@ -569,7 +571,7 @@ class AutofocusExtension(BaseExtension): missing=25, minimum=0, description="Distance to undershoot, before correction move.", - ) + ), } ) def fast_up_down_up_autofocus(