Skip to content

Commit

Permalink
Update tests for new scipy constant values
Browse files Browse the repository at this point in the history
  • Loading branch information
olliesilvester committed Jan 6, 2025
1 parent 2c85352 commit 610bc11
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def test_hardware_read_event_3d(self, mock_ispyb_conn):
"slitgapvertical": 0.2345,
"synchrotronmode": "User",
"undulatorgap1": 1.234,
"resolution": 1.1830593328548429,
"wavelength": 1.1164718451643736,
"resolution": 1.1830593331191241,
"wavelength": 1.11647184541378,
}
assert_upsert_call_with(
mx_acq.upsert_data_collection.mock_calls[0],
Expand Down Expand Up @@ -136,10 +136,10 @@ def test_flux_read_events_3d(self, mock_ispyb_conn):
{
"parentid": TEST_DATA_COLLECTION_GROUP_ID,
"id": TEST_DATA_COLLECTION_IDS[0],
"wavelength": 1.1164718451643736,
"wavelength": 1.11647184541378,
"transmission": 100,
"flux": 10,
"resolution": 1.1830593328548429,
"resolution": 1.1830593331191241,
"focal_spot_size_at_samplex": 0.05,
"focal_spot_size_at_sampley": 0.02,
"beamsize_at_samplex": 0.05,
Expand All @@ -152,10 +152,10 @@ def test_flux_read_events_3d(self, mock_ispyb_conn):
{
"parentid": TEST_DATA_COLLECTION_GROUP_ID,
"id": TEST_DATA_COLLECTION_IDS[1],
"wavelength": 1.1164718451643736,
"wavelength": 1.11647184541378,
"transmission": 100,
"flux": 10,
"resolution": 1.1830593328548429,
"resolution": 1.1830593331191241,
"focal_spot_size_at_samplex": 0.05,
"focal_spot_size_at_sampley": 0.02,
"beamsize_at_samplex": 0.05,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ def test_hardware_read_events(
"synchrotronmode": "User",
"undulatorgap1": 1.234,
"comments": "Sample position (µm): (158, 24, 3) test ",
"resolution": 1.1830593328548429,
"wavelength": 1.1164718451643736,
"resolution": 1.1830593331191241,
"wavelength": 1.11647184541378,
},
)
expected_data = TestData.test_event_document_pre_data_collection["data"]
Expand Down Expand Up @@ -195,10 +195,10 @@ def test_flux_read_events(
"focal_spot_size_at_sampley": 0.02,
"beamsize_at_samplex": 0.05,
"beamsize_at_sampley": 0.02,
"wavelength": 1.1164718451643736,
"wavelength": 1.11647184541378,
"transmission": 98,
"flux": 9.81,
"resolution": 1.1830593328548429,
"resolution": 1.1830593331191241,
},
)

Expand Down Expand Up @@ -320,7 +320,7 @@ def test_comment_correct_after_hardware_read(
"synchrotronmode": "User",
"undulatorgap1": 1.234,
"comments": "Sample position (µm): (158, 24, 3) a lovely unit test ",
"resolution": 1.1830593328548429,
"wavelength": 1.1164718451643736,
"resolution": 1.1830593331191241,
"wavelength": 1.11647184541378,
},
)

0 comments on commit 610bc11

Please sign in to comment.