Skip to content

Commit

Permalink
Merge branch 'main' of github.com:rs-station/laue-dials
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinceWalnut committed Nov 22, 2023
2 parents 24c0e89 + 19b5faa commit 4484c64
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/laue_dials/command_line/sequence_to_stills.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ def sequence_to_stills(experiments, reflections, params):
if params.output.domain_size_ang is None and hasattr(
experiment.crystal, "get_domain_size_ang"
):
crystal.set_domain_size_ang(
experiment.crystal.get_domain_size_ang()
)
crystal.set_domain_size_ang(experiment.crystal.get_domain_size_ang())
elif params.output.domain_size_ang is not None:
crystal.set_domain_size_ang(params.output.domain_size_ang)

Expand All @@ -117,7 +115,9 @@ def sequence_to_stills(experiments, reflections, params):
detector=experiment.detector,
beam=experiment.beam,
crystal=crystal,
imageset=experiment.imageset.as_imageset()[i_scan_point : i_scan_point + 1],
imageset=experiment.imageset.as_imageset()[
i_scan_point : i_scan_point + 1
],
)
new_experiments.append(new_experiment)

Expand All @@ -129,7 +129,7 @@ def sequence_to_stills(experiments, reflections, params):
id_counter = 0
for expt_id, experiment in enumerate(experiments):
# Get subset of reflections for this pass
pass_refls = reflections.select(reflections['imageset_id'] == expt_id)
pass_refls = reflections.select(reflections["imageset_id"] == expt_id)
for i_scan_point in range(*experiment.scan.get_array_range()):
# Get subset of reflections on this image
_, _, _, _, z1, z2 = pass_refls["bbox"].parts()
Expand Down

0 comments on commit 4484c64

Please sign in to comment.