Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeilstenedmands committed Nov 24, 2023
1 parent 31f73a5 commit 24c1c34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/XXX.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix regression test after scan changes
4 changes: 3 additions & 1 deletion tests/test_FormatCBFFull.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def test_still(dials_regression):
imgset = ImageSetFactory.new(os.path.join(data_dir, "grid_full_cbf_0005.cbf"))[0]
if imgset.get_scan(0):
scan = imgset.get_scan(0)
assert approx_equal(scan.get_image_oscillation(0), (30.0, 0.0), eps=1e-5)
assert approx_equal(
scan.get_image_oscillation(scan.get_image_range()[0]), (30.0, 0.0), eps=1e-5
)
beam = imgset.get_beam(0)
beam.get_s0()
assert approx_equal(beam.get_s0(), (-0.0, -0.0, -1.0209290454313424))

0 comments on commit 24c1c34

Please sign in to comment.