Skip to content

Commit 6ebe359

Browse files
adding support for negative dosing events
1 parent 8907317 commit 6ebe359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pioreactor/structs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class DosingEvent(JSONPrintedStruct):
9999
Output of a pump action
100100
"""
101101

102-
volume_change: t.Annotated[float, Meta(ge=0)]
102+
volume_change: float # can be negative!
103103
event: str
104104
source_of_event: t.Optional[str]
105105
timestamp: t.Annotated[datetime, Meta(tz=True)]

0 commit comments

Comments
 (0)