@@ -41,12 +41,34 @@ def __rsub__(
41
41
"""Bypass subtraction and just return self."""
42
42
return self
43
43
44
+ def __gt__ (self , other : float | SimulatedProbeResult ) -> bool :
45
+ """Bypass 'greater than' and just return self."""
46
+ return True
47
+
48
+ def __lt__ (self , other : float | SimulatedProbeResult ) -> bool :
49
+ """Bypass 'less than' and just return self."""
50
+ return False
51
+
52
+ def __ge__ (self , other : float | SimulatedProbeResult ) -> bool :
53
+ """Bypass 'greater than or eaqual to' and just return self."""
54
+ return True
55
+
56
+ def __le__ (self , other : float | SimulatedProbeResult ) -> bool :
57
+ """Bypass 'less than or equal to' and just return self."""
58
+ return False
59
+
44
60
def __eq__ (self , other : object ) -> bool :
45
61
"""A SimulatedProbeResult should only be equal to the same instance of its class."""
46
62
if not isinstance (other , SimulatedProbeResult ):
47
63
return False
48
64
return self is other
49
65
66
+ def __neq__ (self , other : object ) -> bool :
67
+ """A SimulatedProbeResult should only be equal to the same instance of its class."""
68
+ if not isinstance (other , SimulatedProbeResult ):
69
+ return True
70
+ return self is not other
71
+
50
72
def simulate_probed_aspirate_dispense (self , volume : float ) -> None :
51
73
"""Record the current state of aspirate/dispense calls."""
52
74
self .net_liquid_exchanged_after_probe += volume
0 commit comments