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
22
33from pylabrobot .resources .container import Container
44from pylabrobot .resources .liquid import Liquid
@@ -21,6 +21,8 @@ def __init__(
2121 material_z_thickness : Optional [float ] = None ,
2222 category : str = "tube" ,
2323 model : Optional [str ] = None ,
24+ compute_volume_from_height : Optional [Callable [[float ], float ]] = None ,
25+ compute_height_from_volume : Optional [Callable [[float ], float ]] = None ,
2426 ):
2527 """Create a new tube.
2628
@@ -43,6 +45,8 @@ def __init__(
4345 category = category ,
4446 max_volume = max_volume ,
4547 model = model ,
48+ compute_volume_from_height = compute_volume_from_height ,
49+ compute_height_from_volume = compute_height_from_volume ,
4650 )
4751 self .tracker .register_callback (self ._state_updated )
4852
You can’t perform that action at this time.
0 commit comments