Skip to content

Commit

Permalink
ExperimentList -> ExperimentListFactory to fix removed feature
Browse files Browse the repository at this point in the history
In dxtbx the ExperimentList.from_filenames() call was removed, but was used
here. Replacing with ExperimentListFactory resolves this.

Fixes #59
  • Loading branch information
graeme-winter committed Jan 24, 2024
1 parent fbfcaa1 commit 828b5a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fast_dp/image_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import time

from dxtbx.model.experiment_list import ExperimentList
from dxtbx.model.experiment_list import ExperimentListFactory

from fast_dp.image_names import image2template_directory

Expand Down Expand Up @@ -323,11 +323,11 @@ def read_image_metadata_dxtbx(image):
if image.endswith(".h5"):
# XDS can literally only handle master files called (prefix)_master.h5
assert "master" in image
expt = ExperimentList.from_filenames([image])[0]
expt = ExperimentListFactory.from_filenames([image])[0]
else:
template, directory = image2template_directory(image)
full_template = os.path.join(directory, template)
expt = ExperimentList.from_templates(
expt = ExperimentListFactory.from_templates(
[full_template], allow_incomplete_sweeps=True
)[0]

Expand Down

0 comments on commit 828b5a7

Please sign in to comment.