-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hardware-testing): remove gravimetric patches (#14152)
* override the pipette guards at runtime instead of with a patch * remove the api patch for gravimetric tests * format/lint
- Loading branch information
1 parent
39c4ef3
commit 2baae01
Showing
2 changed files
with
26 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
hardware-testing/hardware_testing/gravimetric/overrides/api.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +0,0 @@ | ||
diff --git a/api/src/opentrons/hardware_control/instruments/ot3/pipette.py b/api/src/opentrons/hardware_control/instruments/ot3/pipette.py | ||
index 1f6dd0b4b5..1d0cb7b7e3 100644 | ||
--- a/api/src/opentrons/hardware_control/instruments/ot3/pipette.py | ||
+++ b/api/src/opentrons/hardware_control/instruments/ot3/pipette.py | ||
@@ -432,11 +432,11 @@ class Pipette(AbstractInstrument[PipetteConfigurations]): | ||
|
||
def set_current_volume(self, new_volume: float) -> None: | ||
assert new_volume >= 0 | ||
- assert new_volume <= self.working_volume | ||
+ # assert new_volume <= self.working_volume | ||
self._current_volume = new_volume | ||
|
||
def add_current_volume(self, volume_incr: float) -> None: | ||
- assert self.ok_to_add_volume(volume_incr) | ||
+ # assert self.ok_to_add_volume(volume_incr) | ||
self._current_volume += volume_incr | ||
|
||
def remove_current_volume(self, volume_incr: float) -> None: | ||
@@ -444,7 +444,8 @@ class Pipette(AbstractInstrument[PipetteConfigurations]): | ||
self._current_volume -= volume_incr | ||
|
||
def ok_to_add_volume(self, volume_incr: float) -> bool: | ||
- return self.current_volume + volume_incr <= self.working_volume | ||
+ # return self.current_volume + volume_incr <= self.working_volume | ||
+ return True | ||
|
||
def ok_to_push_out(self, push_out_dist_mm: float) -> bool: | ||
return push_out_dist_mm <= ( | ||