Skip to content

Commit

Permalink
always jog (#13806)
Browse files Browse the repository at this point in the history
  • Loading branch information
andySigler authored Oct 18, 2023
1 parent 5dc45fd commit 4ccb28c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions hardware-testing/hardware_testing/data/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ def print_error(message: str) -> None:
print(f"ERROR: {message}")


def print_warning(message: str) -> None:
"""Print warning."""
print(f"WARNING: {message}")


def print_info(message: str) -> None:
"""Print information."""
print(message)
9 changes: 7 additions & 2 deletions hardware-testing/hardware_testing/gravimetric/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ def _main(
volumes: List[float],
) -> None:
union_cfg: Union[PhotometricConfig, GravimetricConfig]
if not args.jog:
ui.print_warning(
"overwriting --jog to True, because liquid-probe "
"is not repeatable enough for gravimetric tests"
)
if args.photometric:
cfg_pm: PhotometricConfig = build_photometric_cfg(
run_args.ctx,
Expand All @@ -471,7 +476,7 @@ def _main(
args.touch_tip,
args.refill,
args.extra,
args.jog,
True, # NOTE: (andy s) always jog
args.same_tip,
args.ignore_fail,
args.channels,
Expand All @@ -495,7 +500,7 @@ def _main(
args.isolate_channels if args.isolate_channels else [],
args.isolate_volumes if args.isolate_volumes else [],
args.extra,
args.jog,
True, # NOTE: (andy s) always jog
args.same_tip,
args.ignore_fail,
args.mode,
Expand Down

0 comments on commit 4ccb28c

Please sign in to comment.