Skip to content

Commit 65a7142

Browse files
committed
formatting
1 parent 3261917 commit 65a7142

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ulc_mm_package/image_processing/flow_control.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from ulc_mm_package.hardware.pneumatic_module import PneumaticModule, SyringeEndOfTravel
1616

17+
1718
class FlowControlError(Exception):
1819
pass
1920

@@ -222,7 +223,9 @@ def _adjustSyringe(self, flow_error: float):
222223
try:
223224
# Increase pressure, move syringe down
224225
pressure, pressure_read = self.pneumatic_module.getPressure()
225-
if not self.pneumatic_module.is_locked() and pressure > (self.pneumatic_module.mpr.ambient_pressure - MAX_VACUUM_PRESSURE):
226+
if not self.pneumatic_module.is_locked() and pressure > (
227+
self.pneumatic_module.mpr.ambient_pressure - MAX_VACUUM_PRESSURE
228+
):
226229
self.pneumatic_module.threadedDecreaseDutyCycle()
227230
except SyringeEndOfTravel:
228231
raise CantReachTargetFlowrate(self.flowrate)

ulc_mm_package/image_processing/processing_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FLOWRATE(enum.Enum):
3232
FLOW_CONTROL_EWMA_ALPHA = 0.05
3333
TOL_PERC = 0.1
3434
FAILED_CORR_PERC_TOLERANCE = 0.75
35-
MAX_VACUUM_PRESSURE = 400 # mBar
35+
MAX_VACUUM_PRESSURE = 400 # mBar
3636

3737
# Factor by which to multiply the ewma feebdack adjustment delay (in frames) to set the window size
3838
# of the past measurements to check for failed xcorrs.

0 commit comments

Comments
 (0)