Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct API #61

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading