|
11 | 11 |
|
12 | 12 | from pylabrobot.resources.coordinate import Coordinate |
13 | 13 | from pylabrobot.resources.plate import Plate |
14 | | -from pylabrobot.resources.tip import Tip, TipCreator |
| 14 | +from pylabrobot.resources.tip import Tip |
15 | 15 | from pylabrobot.resources.tip_rack import TipRack, TipSpot |
16 | 16 | from pylabrobot.resources.tube import Tube |
17 | 17 | from pylabrobot.resources.tube_rack import TubeRack |
@@ -106,23 +106,19 @@ def volume_from_name(name: str) -> float: |
106 | 106 | wells.append(well) |
107 | 107 | elif display_category == "tipRack": |
108 | 108 | # closure |
109 | | - def make_make_tip(well_data) -> TipCreator: |
110 | | - def make_tip() -> Tip: |
111 | | - total_tip_length = well_data["depth"] |
112 | | - return Tip( |
113 | | - total_tip_length=total_tip_length, |
114 | | - has_filter="Filter" in data["metadata"]["displayName"], |
115 | | - maximal_volume=volume_from_name(data["metadata"]["displayName"]), |
116 | | - fitting_depth=data["parameters"]["tipOverlap"], |
117 | | - ) |
118 | | - |
119 | | - return make_tip |
| 109 | + def make_tip() -> Tip: |
| 110 | + return Tip( |
| 111 | + total_tip_length=data["parameters"]["tipLength"], |
| 112 | + has_filter="Filter" in data["metadata"]["displayName"], |
| 113 | + maximal_volume=volume_from_name(data["metadata"]["displayName"]), |
| 114 | + fitting_depth=data["parameters"]["tipOverlap"], |
| 115 | + ) |
120 | 116 |
|
121 | 117 | tip_spot = TipSpot( |
122 | 118 | name=item, |
123 | 119 | size_x=well_size_x, |
124 | 120 | size_y=well_size_y, |
125 | | - make_tip=make_make_tip(well_data), |
| 121 | + make_tip=make_tip, |
126 | 122 | ) |
127 | 123 | tip_spot.location = location |
128 | 124 | wells.append(tip_spot) |
|
0 commit comments