Skip to content

Commit

Permalink
Update two_theta_refine
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeilstenedmands committed Oct 20, 2023
1 parent be11880 commit cee68a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/dials/command_line/two_theta_refine.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,15 @@ def run(self, args=None):
logger.info("The following parameters have been modified:\n")
logger.info(diff_phil)

if not all(experiments.identifiers()):
from dials.util.multi_dataset_handling import (
generate_experiment_identifiers,
)

generate_experiment_identifiers(experiments)
for i, expt in enumerate(experiments):
reflections.experiment_identifiers()[i] = expt.identifier

# Convert to P 1?
if params.refinement.triclinic:
reflections, experiments = self.convert_to_P1(reflections, experiments)
Expand Down

0 comments on commit cee68a2

Please sign in to comment.