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

Commit

Permalink
(#1327) Response to PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuck99 committed Jun 20, 2024
1 parent 15313f8 commit 33cc2ed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def activity_gated_start(self, doc: RunStart):
def populate_axis_info_for_snapshot(
self, data_collection_info: DataCollectionInfo, omega_start: float | None
):
# TODO in subsequent PR which depends on rotation snapshots 349
pass

def populate_info_for_update(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@ def populate_axis_info_for_snapshot(
self, data_collection_info: DataCollectionInfo, omega_start: float | None
):
if omega_start is not None:
data_collection_info.omega_start = omega_start
data_collection_info.axis_start = omega_start
data_collection_info.axis_end = omega_start
omega_in_gda_space = -omega_start
data_collection_info.omega_start = omega_in_gda_space
data_collection_info.axis_start = omega_in_gda_space
data_collection_info.axis_end = omega_in_gda_space
data_collection_info.axis_range = 0

def populate_info_for_update(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,10 +662,10 @@ def test_ispyb_deposition_in_gridscan(
assert position_id is None
DC_EXPECTED_VALUES.update(
{
"axisstart": -90.0,
"axisend": -90.0,
"axisstart": 90.0,
"axisend": 90.0,
"datacollectionnumber": 2,
"omegastart": -90.0,
"omegastart": 90.0,
"filetemplate": "file_name_2_master.h5",
"numberofimages": 220,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ def test_activity_gated_event_oav_snapshot_triggered(self, mock_ispyb_conn):
"comments": "Hyperion: Xray centring - Diffraction grid scan of 40 by 10 "
"images in 100.0 um by 120.0 um steps. Top left (px): [50,0], "
"bottom right (px): [3250,800].",
"axisstart": -90,
"omegastart": -90,
"axisend": -90,
"axisstart": 90,
"omegastart": 90,
"axisend": 90,
"axisrange": 0,
},
)
Expand Down

0 comments on commit 33cc2ed

Please sign in to comment.