11""" Corning plates. """
22
33from 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)
79from 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:
8198def 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