File tree 2 files changed +6
-4
lines changed
api/src/opentrons/drivers/flex_stacker
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ async def get_hopper_door_closed(self) -> bool:
141
141
:return: True if door is closed, False otherwise
142
142
"""
143
143
...
144
-
144
+
145
145
async def get_installation_detected (self ) -> bool :
146
146
"""Get whether or not installation is detected.
147
147
Original file line number Diff line number Diff line change @@ -167,14 +167,16 @@ def parse_door_closed(cls, response: str) -> bool:
167
167
if not match :
168
168
raise ValueError (f"Incorrect Response for door closed: { response } " )
169
169
return bool (int (match .group (1 )))
170
-
170
+
171
171
@classmethod
172
172
def parse_installation_detected (cls , response : str ) -> bool :
173
173
"""Parse install detection."""
174
174
_RE = re .compile (rf"^{ GCODE .GET_INSTALL_DETECTED } I:(\d)$" )
175
175
match = _RE .match (response )
176
176
if not match :
177
- raise ValueError (f"Incorrect Response for installation detected: { response } " )
177
+ raise ValueError (
178
+ f"Incorrect Response for installation detected: { response } "
179
+ )
178
180
return bool (int (match .group (1 )))
179
181
180
182
@classmethod
@@ -640,7 +642,7 @@ async def get_hopper_door_closed(self) -> bool:
640
642
GCODE .GET_DOOR_SWITCH .build_command ()
641
643
)
642
644
return self .parse_door_closed (response )
643
-
645
+
644
646
async def get_installation_detected (self ) -> bool :
645
647
"""Get whether or not installation is detected.
646
648
You can’t perform that action at this time.
0 commit comments