-
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
ac7c191
commit 3a07f7f
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
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 2d36460ca6..8578768930 100644 | ||
--- a/api/src/opentrons/hardware_control/instruments/ot3/pipette.py | ||
+++ b/api/src/opentrons/hardware_control/instruments/ot3/pipette.py | ||
@@ -427,11 +427,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: | ||
@@ -439,7 +439,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 <= ( | ||