Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Make run-up optional
Browse files Browse the repository at this point in the history
  • Loading branch information
olliesilvester committed Feb 28, 2024
1 parent 2758375 commit bfc189f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(
oav_params: OAVConfigParams,
exposure_time: float,
set_stub_offsets: bool,
run_up_distance_mm: float,
run_up_distance_mm: float = 0.15,
*args,
) -> None:
super().__init__(*args)
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/experiment_plans/test_grid_detection_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def test_given_when_grid_detect_then_upper_left_and_start_position_as_expected(
box_size_y_pixels = box_size_microns / composite.oav.parameters.micronsPerYPixel

oav_cb = OavSnapshotCallback()
grid_param_cb = GridDetectionCallback(composite.oav.parameters, 0.004, False, 0.15)
grid_param_cb = GridDetectionCallback(composite.oav.parameters, 0.004, False)
RE.subscribe(oav_cb)
RE.subscribe(grid_param_cb)
RE(
Expand Down Expand Up @@ -225,7 +225,7 @@ def test_when_grid_detection_plan_run_then_grid_detection_callback_gets_correct_
params = OAVParameters("loopCentring", test_config_files["oav_config_json"])
composite, _ = fake_devices
box_size_microns = 20
cb = GridDetectionCallback(composite.oav.parameters, 0.5, True, 0.15)
cb = GridDetectionCallback(composite.oav.parameters, 0.5, True)
RE.subscribe(cb)

RE(
Expand Down

0 comments on commit bfc189f

Please sign in to comment.