1
1
"""Geometry state getters."""
2
2
3
3
import enum
4
+ # import logging
4
5
from numpy import array , dot , double as npdouble
5
6
from numpy .typing import NDArray
6
7
from typing import Optional , List , Tuple , Union , cast , TypeVar , Dict
@@ -1422,7 +1423,8 @@ def get_liquid_handling_z_change(
1422
1423
initial_height = initial_handling_height ,
1423
1424
volume = operation_volume ,
1424
1425
)
1425
- # make sure we handle aspirate and dispense both directions
1426
+ # uncomment this
1427
+ # return final_height - initial_handling_height
1426
1428
return initial_handling_height - final_height
1427
1429
1428
1430
def get_well_offset_adjustment (
@@ -1445,6 +1447,10 @@ def get_well_offset_adjustment(
1445
1447
well_location = well_location ,
1446
1448
well_depth = well_depth ,
1447
1449
)
1450
+ # _log = logging.getLogger(__name__)
1451
+ # raise ValueError(
1452
+ # f"initial handling height {initial_handling_height} \n is_tracking {is_tracking}"
1453
+ # )
1448
1454
if is_tracking :
1449
1455
return initial_handling_height
1450
1456
if isinstance (well_location , PickUpTipWellLocation ):
@@ -1473,6 +1479,9 @@ def get_meniscus_height(
1473
1479
well_liquid = self ._wells .get_well_liquid_info (
1474
1480
labware_id = labware_id , well_name = well_name
1475
1481
)
1482
+ # raise ValueError(f"well = {well_liquid}")
1483
+ # raise ValueError(f"prbed_height not none{well_liquid.probed_height is not None}\n \
1484
+ # height.height is not None {well_liquid.probed_height.height is not None}")
1476
1485
if (
1477
1486
well_liquid .probed_height is not None
1478
1487
and well_liquid .probed_height .height is not None
@@ -1515,6 +1524,7 @@ def get_well_handling_height(
1515
1524
elif well_location .origin == WellOrigin .CENTER :
1516
1525
handling_height = well_depth / 2.0
1517
1526
elif well_location .origin == WellOrigin .MENISCUS :
1527
+ # baddie here
1518
1528
handling_height = self .get_meniscus_height (
1519
1529
labware_id = labware_id , well_name = well_name
1520
1530
)
0 commit comments