Skip to content

Commit 91f74ec

Browse files
authored
add corning fb plate compute volume (#903)
1 parent 52f5e68 commit 91f74ec

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

pylabrobot/resources/corning/plates.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
""" Corning plates. """
22

33
from pylabrobot.resources.height_volume_functions import (
4+
calculate_liquid_height_container_1segment_round_fbottom,
45
calculate_liquid_height_in_container_2segments_square_vbottom,
6+
calculate_liquid_volume_container_1segment_round_fbottom,
57
calculate_liquid_volume_container_2segments_square_vbottom,
68
)
79
from pylabrobot.resources.plate import Lid, Plate
@@ -58,6 +60,8 @@ def Cor_96_wellplate_360ul_Fb(name: str, with_lid: bool = False) -> Plate:
5860
bottom_type=WellBottomType.FLAT,
5961
cross_section_type=CrossSectionType.CIRCLE,
6062
max_volume=360,
63+
compute_volume_from_height=_compute_volume_from_height_Cor_96_wellplate_360ul_Fb,
64+
compute_height_from_volume=_compute_height_from_volume_Cor_96_wellplate_360ul_Fb,
6165
),
6266
)
6367

@@ -77,6 +81,19 @@ def Cor_96_wellplate_360ul_Fb_Lid(name: str) -> Lid:
7781
)
7882

7983

84+
# Volume-height functions
85+
def _compute_volume_from_height_Cor_96_wellplate_360ul_Fb(h: float) -> float:
86+
return calculate_liquid_volume_container_1segment_round_fbottom(
87+
d=6.86, h_cylinder=10.67, liquid_height=h
88+
)
89+
90+
91+
def _compute_height_from_volume_Cor_96_wellplate_360ul_Fb(liquid_volume: float) -> float:
92+
return calculate_liquid_height_container_1segment_round_fbottom(
93+
d=6.86, h_cylinder=10.67, liquid_volume=liquid_volume
94+
)
95+
96+
8097
# Previous names in PLR:
8198
def Cos_96_EZWash(name: str, with_lid: bool = False) -> Plate:
8299
raise ValueError("Deprecated. You probably want to use Cor_96_wellplate_360ul_Fb instead.")

0 commit comments

Comments
 (0)