Skip to content

Commit

Permalink
Update FormatCBFFull test following scan changes (cctbx#670)
Browse files Browse the repository at this point in the history
Update test
  • Loading branch information
jbeilstenedmands authored Nov 24, 2023
1 parent 31f73a5 commit dbd7ede
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/670.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 dbd7ede

Please sign in to comment.