Skip to content

Commit

Permalink
Add missing call to generate r-free-flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeilstenedmands committed Sep 12, 2023
1 parent 0ab5c7d commit d0538ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/dials/algorithms/merging/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,13 @@ def merge_scaled_array_to_mtz_with_report_collection(
process_merged_data(
params, mtz_dataset, merged, merged_anomalous, stats_summary
)
mtz = make_merged_mtz_file([mtz_dataset])
if params.r_free_flags.reference:
r_free_array = r_free_flags_from_reference(params, [mtz_dataset])
elif params.r_free_flags.generate:
r_free_array = generate_r_free_flags(params, [mtz_dataset])
else:
r_free_array = None
mtz = make_merged_mtz_file([mtz_dataset], r_free_array=r_free_array)
json_data = collector.create_json()
return mtz, json_data

Expand Down

0 comments on commit d0538ef

Please sign in to comment.