Skip to content

Commit

Permalink
increase measurement height when not using vial
Browse files Browse the repository at this point in the history
  • Loading branch information
andySigler committed Jun 30, 2023
1 parent bbdc543 commit a6c00be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion hardware-testing/hardware_testing/gravimetric/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class PhotometricConfig:
NUM_BLANK_TRIALS: Final = 3
NUM_MIXES_BEFORE_ASPIRATE = 5
SCALE_SECONDS_TO_TRUE_STABILIZE = 30
SCALE_Z_DISTANCE_TO_AVOID_STATIC = 50

LOW_VOLUME_UPPER_LIMIT_UL: Final = 2.0

Expand Down
10 changes: 9 additions & 1 deletion hardware-testing/hardware_testing/gravimetric/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ def _run_trial(
mix: bool = False,
stable: bool = True,
scale_delay: int = DELAY_FOR_MEASUREMENT,
measure_height: float = 50,
) -> Tuple[float, MeasurementData, float, MeasurementData]:
pipetting_callbacks = _generate_callbacks_for_trial(
recorder, volume, channel, trial, blank
Expand Down Expand Up @@ -362,7 +363,6 @@ def _record_measurement_and_store(m_type: MeasurementType) -> MeasurementData:
print("recorded weights:")

# RUN INIT
measure_height = config.SCALE_Z_DISTANCE_TO_AVOID_STATIC
pipette.move_to(well.top(measure_height).move(channel_offset))
m_data_init = _record_measurement_and_store(MeasurementType.INIT)
print(f"\tinitial grams: {m_data_init.grams_average} g")
Expand Down Expand Up @@ -566,6 +566,12 @@ def _next_tip_for_channel(channel: int) -> Well:
liquid="None",
)

# need to be as far away from the scale as possible
# to avoid static from distorting the measurement
if cfg.labware_on_scale == "radwag_pipette_calibration_vial":
measure_height = 50
else:
measure_height = 120
calibration_tip_in_use = True
try:
ui.print_title("FIND LIQUID HEIGHT")
Expand Down Expand Up @@ -628,6 +634,7 @@ def _next_tip_for_channel(channel: int) -> Well:
mix=cfg.mix,
stable=True,
scale_delay=cfg.scale_delay,
measure_height=measure_height,
)
print(
f"blank {trial + 1}/{config.NUM_BLANK_TRIALS}:\n"
Expand Down Expand Up @@ -704,6 +711,7 @@ def _next_tip_for_channel(channel: int) -> Well:
mix=cfg.mix,
stable=True,
scale_delay=cfg.scale_delay,
measure_height=measure_height,
)
print(
"measured volumes:\n"
Expand Down

0 comments on commit a6c00be

Please sign in to comment.