8000 Use image files from dials-data `image_examples`, not from `dials_regression` by dagewa · Pull Request #801 · cctbx/dxtbx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use image files from dials-data image_examples, not from dials_regression #801

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

Merged
merged 19 commits into from
Apr 10, 2025

Conversation

dagewa
Copy link
Member
@dagewa dagewa commented Apr 9, 2025

This moves many more dxtbx tests to use dials-data, though not yet all. There are some changes to what gets tested, in particular, compressed files do not get a detectorbase set up, as this involves file reads in iotbx, outside of dxtbx's transparent compressed file reading functionality.

On the other hand, a get_raw_data method was added to FormatRAXIS and derivatives, so that these images could be read when compressed. That allowed test_imageset.py::test_format to run without error on those images.

Clean up a few other areas, like deleting test_datablock.py, which contained no tests.

dagewa and others added 19 commits April 9, 2025 10:22
…ould be

got around by copying image reading code from iotbx into get_raw_data,
ensuring the file is only opened by the compressoin-aware Format class
open_file method.
This ends up testing far fewer images than before, because detectorbase
cannot be instantiated on compressed images, where they are opened without
dxtbx's transparent compressed file opening system. But we do not generally
use detectorbase anyway.
adequately tested now anyway by the compressed images on dials-data
@ndevenish
Copy link
Collaborator

Agreement to merge from DIALS-core

@dagewa dagewa merged commit 20bd67e into main Apr 10, 2025
10 checks passed
@dagewa dagewa deleted the use-dials-data-image_examples branch April 10, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0