File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
- from typing import List , Optional , Tuple
1
+ from typing import Callable , List , Optional , Tuple
2
2
3
3
from pylabrobot .resources .container import Container
4
4
from pylabrobot .resources .liquid import Liquid
@@ -21,6 +21,8 @@ def __init__(
21
21
material_z_thickness : Optional [float ] = None ,
22
22
category : str = "tube" ,
23
23
model : Optional [str ] = None ,
24
+ compute_volume_from_height : Optional [Callable [[float ], float ]] = None ,
25
+ compute_height_from_volume : Optional [Callable [[float ], float ]] = None ,
24
26
):
25
27
"""Create a new tube.
26
28
@@ -43,6 +45,8 @@ def __init__(
43
45
category = category ,
44
46
max_volume = max_volume ,
45
47
model = model ,
48
+ compute_volume_from_height = compute_volume_from_height ,
49
+ compute_height_from_volume = compute_height_from_volume ,
46
50
)
47
51
self .tracker .register_callback (self ._state_updated )
48
52
You can’t perform that action at this time.
0 commit comments