Skip to content

Commit

Permalink
Update expected output after binning change
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeilstenedmands committed Sep 22, 2023
1 parent 3669469 commit 99ccd93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/command_line/test_estimate_resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ def test_x4wide(input_files, dials_data, run_in_tmp_path, capsys):
)
captured = capsys.readouterr()
expected_output = (
"Resolution rmerge: 1.34",
"Resolution rmerge: 1.33",
"Resolution cc_half: 1.56",
"Resolution cc_ref: 1.3",
"Resolution I/sig: 1.53",
"Resolution Mn(I/sig): 1.51",
"Resolution Mn(I)/Mn(sig): 1.50",
"Resolution Mn(I)/Mn(sig): 1.49",
)
for line in expected_output:
assert line in captured.out
Expand Down
3 changes: 1 addition & 2 deletions tests/util/test_resolution_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ def merging_stats(dials_data):

def test_resolution_fit(merging_stats):
d_star_sq = flex.double(uctbx.d_as_d_star_sq(b.d_min) for b in merging_stats.bins)
n_obs = None
y_obs = flex.double(b.r_merge for b in merging_stats.bins)
result = resolution_analysis.resolution_fit(
d_star_sq, y_obs, resolution_analysis.log_inv_fit, 0.6, n_obs
d_star_sq, y_obs, resolution_analysis.log_inv_fit, 0.6, n_obs=None
)
assert result.d_min == pytest.approx(1.278, abs=1e-3)
assert flex.max(flex.abs(result.y_obs - result.y_fit)) < 0.05
Expand Down

0 comments on commit 99ccd93

Please sign in to comment.