Skip to content

Commit

Permalink
Use recalculated or best cell
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeilstenedmands committed Jan 9, 2024
1 parent 2e18ef5 commit f816146
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dials/util/reindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from cctbx import sgtbx
from rstbx.symmetry.constraints import parameter_reduction

from dials.algorithms.scaling.scaling_library import determine_best_unit_cell
from dials.algorithms.symmetry.reindex_to_reference import (
determine_reindex_operator_against_reference,
)
Expand Down Expand Up @@ -74,6 +75,9 @@ def change_of_basis_op_against_reference(
), "No 'intensity.sum.value' in reflections"
table.set_flags(flex.bool(table.size(), True), table.flags.integrated_sum)
# Make miller array of the datasets
cell = determine_best_unit_cell(experiments)
for expt in experiments:
expt.crystal.set_unit_cell(cell)
filter_logger = logging.getLogger("dials.util.filter_reflections")
filter_logger.disabled = True
test_miller_sets = filtered_arrays_from_experiments_reflections(
Expand Down

0 comments on commit f816146

Please sign in to comment.