Skip to content

Commit

Permalink
Correct API
Browse files Browse the repository at this point in the history
  • Loading branch information
graeme-winter committed Mar 12, 2024
1 parent fbfcaa1 commit b2b35ee
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 b2b35ee

Please sign in to comment.