-
Notifications
You must be signed in to change notification settings - Fork 18
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
Format.get_mask() -> get_static_mask() #73
Conversation
However imageset.get_mask now fails.
One remaining issue is that as far as I can tell, FormatNexus and FormatHDF5EigerNearlyNexus define a Lines 130 to 131 in 9d89b3a
dxtbx/format/FormatHDF5EigerNearlyNexus.py Lines 402 to 403 in 9d89b3a
|
This is needed to prevent an incorrect format_instance affecting other tests that are run after this one.
If the format class has already specified a static mask then combine with any externally-provided mask instead of simply replacing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me.
Regarding the Nexus get_mask thing, as far as I am aware nothing actually uses this functionality.
Great. And thank you very much for adding a test for the MPCCD class. Could you please add a test to make sure you can combine the dxtbx mask with a user provided mask? |
Done (and found a bug): 6130e74#diff-195e009be36221a969d4a55a0f00e072R274 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the test for combining the masks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Happy with this version.
Test has never passed, and test file will not load on Python 3 anyway
Following #73 get_mask should have been renamed get_static_mask in order for it to be called. This change set will fix dials/dials#1340
Following #73 get_mask should have been renamed get_static_mask in order for it to be called. This change set will fix dials/dials#1340 * Fix mask pointers * Fix mask array dimensions - refer to the actual data set if 1 module, else stick with existing behaviour - frequently the data_size information in the HDF5 meta is inaccurate. * Add tool to show mask information, with test * Iterate through imagesets not experiments - the latter can be very numerous for large grid scans and contains a collection of the same static mask... Thanks to @rjgildea for PR feedback
Following #73 get_mask should have been renamed get_static_mask in order for it to be called. This change set will fix dials/dials#1340 * Fix mask pointers * Fix mask array dimensions - refer to the actual data set if 1 module, else stick with existing behaviour - frequently the data_size information in the HDF5 meta is inaccurate. * Add tool to show mask information, with test * Iterate through imagesets not experiments - the latter can be very numerous for large grid scans and contains a collection of the same static mask... Thanks to @rjgildea for PR feedback
This pull requests resolves #70 (see also #65).