|
| 1 | +# https://cell-nest.oss-cn-zhangjiakou.aliyuncs.com/Resource/File/2022/11/24/NEST%20Reservoir.pdf |
| 2 | + |
| 3 | +from pylabrobot.resources.height_volume_functions import ( |
| 4 | + compute_height_from_volume_rectangle, |
| 5 | + compute_volume_from_height_rectangle, |
| 6 | +) |
| 7 | +from pylabrobot.resources.plate import Plate |
| 8 | +from pylabrobot.resources.utils import create_ordered_items_2d |
| 9 | +from pylabrobot.resources.well import ( |
| 10 | + Well, |
| 11 | + WellBottomType, |
| 12 | +) |
| 13 | + |
| 14 | + |
| 15 | +def nest_8_troughplate_22000uL_Vb(name: str) -> Plate: |
| 16 | + """part no 360101. not validated""" |
| 17 | + well_length = 107.5 # from datasheet |
| 18 | + well_width = 8.2 # from datasheet |
| 19 | + well_kwargs = { |
| 20 | + "size_x": well_width, |
| 21 | + "size_y": well_length, |
| 22 | + "size_z": 26.85, # from datasheet |
| 23 | + "bottom_type": WellBottomType.V, |
| 24 | + # an approximation: the trapezoid at the bottom is not fully defined in the datasheet |
| 25 | + "compute_height_from_volume": lambda liquid_volume: compute_height_from_volume_rectangle( |
| 26 | + liquid_volume=liquid_volume, well_length=well_length, well_width=well_width |
| 27 | + ), |
| 28 | + "compute_volume_from_height": lambda liquid_height: compute_volume_from_height_rectangle( |
| 29 | + liquid_height=liquid_height, well_length=well_length, well_width=well_width |
| 30 | + ), |
| 31 | + "material_z_thickness": 31.4 - 26.85 - 3.55, # from datasheet |
| 32 | + } |
| 33 | + |
| 34 | + return Plate( |
| 35 | + name=name, |
| 36 | + size_x=127.76, # from datasheet |
| 37 | + size_y=85.48, # from datasheet |
| 38 | + size_z=31.4, # from datasheet |
| 39 | + lid=None, |
| 40 | + model=nest_8_troughplate_22000uL_Vb.__name__, |
| 41 | + ordered_items=create_ordered_items_2d( |
| 42 | + Well, |
| 43 | + num_items_x=8, |
| 44 | + num_items_y=1, |
| 45 | + dx=(127.76 - 107.5) / 2, # from datasheet |
| 46 | + dy=11.24 - 8.2 / 2, # from datasheet |
| 47 | + dz=3.55, # from datasheet |
| 48 | + item_dx=9.0, # from datasheet |
| 49 | + item_dy=9.0, # from datasheet |
| 50 | + **well_kwargs, |
| 51 | + ), |
| 52 | + ) |
| 53 | + |
| 54 | + |
| 55 | +def nest_12_troughplate_15000uL_Vb(name: str) -> Plate: |
| 56 | + """part no 360102.""" |
| 57 | + well_length = 71.2 # from datasheet |
| 58 | + well_width = 8.2 # from datasheet |
| 59 | + well_kwargs = { |
| 60 | + "size_x": well_width, |
| 61 | + "size_y": well_length, |
| 62 | + "size_z": 26.85, # from datasheet |
| 63 | + "bottom_type": WellBottomType.V, |
| 64 | + # an approximation: the trapezoid at the bottom is not fully defined in the datasheet |
| 65 | + "compute_height_from_volume": lambda liquid_volume: compute_height_from_volume_rectangle( |
| 66 | + liquid_volume=liquid_volume, well_length=well_length, well_width=well_width |
| 67 | + ), |
| 68 | + "compute_volume_from_height": lambda liquid_height: compute_volume_from_height_rectangle( |
| 69 | + liquid_height=liquid_height, well_length=well_length, well_width=well_width |
| 70 | + ), |
| 71 | + "material_z_thickness": 31.4 - 26.85 - 3.55, # from datasheet |
| 72 | + } |
| 73 | + |
| 74 | + return Plate( |
| 75 | + name=name, |
| 76 | + size_x=127.76, # from datasheet |
| 77 | + size_y=85.48, # from datasheet |
| 78 | + size_z=31.4, # from datasheet |
| 79 | + lid=None, |
| 80 | + model=nest_12_troughplate_15000uL_Vb.__name__, |
| 81 | + ordered_items=create_ordered_items_2d( |
| 82 | + Well, |
| 83 | + num_items_x=12, |
| 84 | + num_items_y=1, |
| 85 | + dx=14.38 - 8.2 / 2, # from datasheet |
| 86 | + dy=(85.48 - 71.2) / 2, # from datasheet |
| 87 | + dz=3.55, # from datasheet |
| 88 | + item_dx=9.0, # from datasheet |
| 89 | + item_dy=9.0, # from datasheet |
| 90 | + **well_kwargs, |
| 91 | + ), |
| 92 | + ) |
0 commit comments