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

Commit

Permalink
(#1283) Adjust x- and y- mpp so that they are different in tests. bum…
Browse files Browse the repository at this point in the history
…p dodal hash
  • Loading branch information
rtuck99 committed Apr 23, 2024
1 parent b556781 commit 1decd6a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ install_requires =
xarray
doct
databroker
dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git@3745ab3c5b9647e4ba3782b0b74ebe85faee0475
dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git@fa03f7d91d4395057431c733ec40eb315dbecbd6
pydantic<2.0 # See https://github.com/DiamondLightSource/hyperion/issues/774
scipy
pyzmq<25 # See https://github.com/DiamondLightSource/hyperion/issues/1103
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/external_interaction/callbacks/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class TestData:
"oav_snapshot_num_boxes_x": 40,
"oav_snapshot_num_boxes_y": 20,
"oav_snapshot_microns_per_pixel_x": 1.25,
"oav_snapshot_microns_per_pixel_y": 1.25,
"oav_snapshot_microns_per_pixel_y": 1.5,
"oav_snapshot_box_width": 0.1 * 1000 / 1.25, # size in pixels
"oav_snapshot_last_path_full_overlay": "test_1_y",
"oav_snapshot_last_path_outer": "test_2_y",
Expand All @@ -181,7 +181,7 @@ class TestData:
"oav_snapshot_num_boxes_x": 40,
"oav_snapshot_num_boxes_y": 10,
"oav_snapshot_microns_per_pixel_x": 1.25,
"oav_snapshot_microns_per_pixel_y": 1.25,
"oav_snapshot_microns_per_pixel_y": 1.5,
"oav_snapshot_box_width": 0.1 * 1000 / 1.25, # size in pixels
"oav_snapshot_last_path_full_overlay": "test_1_z",
"oav_snapshot_last_path_outer": "test_2_z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def test_activity_gated_event_oav_snapshot_triggered(self, mock_ispyb_conn):
"xtal_snapshot2": "test_2_y",
"xtal_snapshot3": "test_3_y",
"comments": "Hyperion: Xray centring - Diffraction grid scan of 40 by 20 "
"images in 100.0 um by 100.0 um steps. Top left (px): [50,100], "
"images in 100.0 um by 120.0 um steps. Top left (px): [50,100], "
"bottom right (px): [3250,1700].",
},
)
Expand All @@ -276,7 +276,7 @@ def test_activity_gated_event_oav_snapshot_triggered(self, mock_ispyb_conn):
"xtal_snapshot2": "test_2_z",
"xtal_snapshot3": "test_3_z",
"comments": "Hyperion: Xray centring - Diffraction grid scan of 40 by 10 "
"images in 100.0 um by 100.0 um steps. Top left (px): [50,0], "
"images in 100.0 um by 120.0 um steps. Top left (px): [50,0], "
"bottom right (px): [3250,800].",
},
)
Expand All @@ -286,11 +286,11 @@ def test_activity_gated_event_oav_snapshot_triggered(self, mock_ispyb_conn):
{
"parentid": TEST_DATA_COLLECTION_IDS[0],
"dxinmm": 0.1,
"dyinmm": 0.1,
"dyinmm": 0.12,
"stepsx": 40,
"stepsy": 20,
"micronsperpixelx": 1.25,
"micronsperpixely": 1.25,
"micronsperpixely": 1.5,
"snapshotoffsetxpixel": 50,
"snapshotoffsetypixel": 100,
"orientation": "horizontal",
Expand All @@ -303,11 +303,11 @@ def test_activity_gated_event_oav_snapshot_triggered(self, mock_ispyb_conn):
{
"parentid": TEST_DATA_COLLECTION_IDS[1],
"dxinmm": 0.1,
"dyinmm": 0.1,
"dyinmm": 0.12,
"stepsx": 40,
"stepsy": 10,
"micronsperpixelx": 1.25,
"micronsperpixely": 1.25,
"micronsperpixely": 1.5,
"snapshotoffsetxpixel": 50,
"snapshotoffsetypixel": 0,
"orientation": "horizontal",
Expand Down

0 comments on commit 1decd6a

Please sign in to comment.