Skip to content

Commit

Permalink
Update dials.show tests for dxtbx model changes (dials#2482)
Browse files Browse the repository at this point in the history
Beam models now include Probe details on the type of beam.
  • Loading branch information
dagewa authored Aug 4, 2023
1 parent 4b86bb6 commit 93c1364
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/2482.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tests of ``dials.show`` are updated to account for output of probe type.
6 changes: 5 additions & 1 deletion tests/command_line/test_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def test_dials_show(dials_regression):
Max resolution (at corners): 1.008178
Max resolution (inscribed): 1.204283
Beam:
probe: x-ray
wavelength: 0.9795
sample to source direction : {0,0,1}
divergence: 0
Expand Down Expand Up @@ -119,6 +120,7 @@ def test_dials_show_i04_weak_data(dials_regression):
Max resolution (at corners): 1.161261
Max resolution (inscribed): 1.509475
Beam:
probe: x-ray
wavelength: 0.97625
sample to source direction : {0,0,1}
divergence: 0
Expand Down Expand Up @@ -179,6 +181,7 @@ def test_dials_show_centroid_test_data(dials_data):
Max resolution (at corners): 1.008375
Max resolution (inscribed): 1.204621
Beam:
probe: x-ray
wavelength: 0.9795
sample to source direction : {0,0,1}
divergence: 0
Expand Down Expand Up @@ -242,7 +245,7 @@ def test_dials_show_multi_panel_i23(dials_regression):
)

assert (
"\n".join(output[-44:])
"\n".join(output[-45:])
== """
Panel:
name: row-23
Expand All @@ -266,6 +269,7 @@ def test_dials_show_multi_panel_i23(dials_regression):
Max resolution (at corners): 0.624307
Max resolution (inscribed): 0.829324
Beam:
probe: x-ray
wavelength: 0.95373
sample to source direction : {0,0,1}
divergence: 0
Expand Down

0 comments on commit 93c1364

Please sign in to comment.