diff --git a/hardware-testing/hardware_testing/data/ui.py b/hardware-testing/hardware_testing/data/ui.py index 3b33c18b52c..7d8ef16db64 100644 --- a/hardware-testing/hardware_testing/data/ui.py +++ b/hardware-testing/hardware_testing/data/ui.py @@ -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) diff --git a/hardware-testing/hardware_testing/gravimetric/__main__.py b/hardware-testing/hardware_testing/gravimetric/__main__.py index cb0fb717032..2d790535445 100644 --- a/hardware-testing/hardware_testing/gravimetric/__main__.py +++ b/hardware-testing/hardware_testing/gravimetric/__main__.py @@ -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, @@ -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, @@ -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,