From cee68a2c75ed7207dcc1778b96ebf1766a3ff59f Mon Sep 17 00:00:00 2001 From: James Beilsten-Edmands <30625594+jbeilstenedmands@users.noreply.github.com> Date: Fri, 20 Oct 2023 11:29:42 +0100 Subject: [PATCH] Update two_theta_refine --- src/dials/command_line/two_theta_refine.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dials/command_line/two_theta_refine.py b/src/dials/command_line/two_theta_refine.py index cac02391f7..a4e8fec7fd 100644 --- a/src/dials/command_line/two_theta_refine.py +++ b/src/dials/command_line/two_theta_refine.py @@ -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)