@@ -1577,8 +1577,8 @@ async def aspirate(
1577
1577
self ._assert_valid_resources ([op .resource for op in ops ])
1578
1578
1579
1579
# correct volumes using the liquid class
1580
- for op , hlc in zip ( ops , hamilton_liquid_classes ):
1581
- op . volume = hlc . compute_corrected_volume ( op . volume ) if hlc is not None else op . volume
1580
+ volumes = [ hlc . compute_corrected_volume ( op . volume ) if hlc is not None else op . volume
1581
+ for op , hlc in zip ( ops , hamilton_liquid_classes )]
1582
1582
1583
1583
well_bottoms = [op .resource .get_absolute_location ().z + op .offset .z + \
1584
1584
op .resource .material_z_thickness for op in ops ]
@@ -1657,7 +1657,7 @@ async def aspirate(
1657
1657
x_positions = x_positions ,
1658
1658
y_positions = y_positions ,
1659
1659
1660
- aspiration_volumes = [round (op . volume * 10 ) for op in ops ],
1660
+ aspiration_volumes = [round (vol * 10 ) for vol in volumes ],
1661
1661
lld_search_height = [round (lsh * 10 ) for lsh in lld_search_height ],
1662
1662
clot_detection_height = [round (cd * 10 ) for cd in clot_detection_height ],
1663
1663
liquid_surface_no_lld = [round (ls * 10 ) for ls in liquid_surfaces_no_lld ],
@@ -1839,8 +1839,8 @@ async def dispense(
1839
1839
))
1840
1840
1841
1841
# correct volumes using the liquid class
1842
- for op , hlc in zip ( ops , hamilton_liquid_classes ):
1843
- op . volume = hlc . compute_corrected_volume ( op . volume ) if hlc is not None else op . volume
1842
+ volumes = [ hlc . compute_corrected_volume ( op . volume ) if hlc is not None else op . volume
1843
+ for op , hlc in zip ( ops , hamilton_liquid_classes )]
1844
1844
1845
1845
well_bottoms = [op .resource .get_absolute_location ().z + op .offset .z + \
1846
1846
op .resource .material_z_thickness for op in ops ]
@@ -1858,7 +1858,6 @@ async def dispense(
1858
1858
[_dispensing_mode_for_op (empty = empty [i ], jet = jet [i ], blow_out = blow_out [i ])
1859
1859
for i in range (len (ops ))]
1860
1860
1861
- dispense_volumes = [op .volume for op in ops ]
1862
1861
pull_out_distance_transport_air = _fill_in_defaults (pull_out_distance_transport_air , [10.0 ]* n )
1863
1862
second_section_height = _fill_in_defaults (second_section_height , [3.2 ]* n )
1864
1863
second_section_ratio = _fill_in_defaults (second_section_ratio , [618.0 ]* n )
@@ -1907,7 +1906,7 @@ async def dispense(
1907
1906
y_positions = y_positions ,
1908
1907
1909
1908
dispensing_mode = dispensing_modes ,
1910
- dispense_volumes = [round (dv * 10 ) for dv in dispense_volumes ],
1909
+ dispense_volumes = [round (vol * 10 ) for vol in volumes ],
1911
1910
lld_search_height = [round (lsh * 10 ) for lsh in lld_search_height ],
1912
1911
liquid_surface_no_lld = [round (ls * 10 ) for ls in liquid_surfaces_no_lld ],
1913
1912
pull_out_distance_transport_air = [round (po * 10 ) for po in pull_out_distance_transport_air ],
0 commit comments