-
Notifications
You must be signed in to change notification settings - Fork 14
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
First pass at new MaskManager class #1622
Conversation
Hello @bnmajor! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-01-22 18:10:05 UTC |
4cbc669
to
743c848
Compare
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.
Overall, I think this is looking very nice! We need this refactoring improvement! Please see the suggestions, and keep up the good work! 👍
b15c9d6
to
de71f6b
Compare
da6128d
to
8361673
Compare
599a956
to
b886ae8
Compare
b886ae8
to
b2b92d6
Compare
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.
Looking really nice so far! We really needed this re-organization! I left a few comments about ways we could improve things further.
3bec4d8
to
37b78de
Compare
Signed-off-by: Brianna Major <[email protected]>
Keep all conversion logic in a single file and either convert to the expected format or return the data as-is if it is already correct. Additionally add a version key to check against and improve naming. Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
The powder, laue, and pinhole masks consist of a list of numpy arrays and cannot be directly serialized/deserialized in this format. Store in a dict instead. Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Move the raw_masks_dict and masked_images_dict properties and create_masked_images_dict function back to HexrdConfig so that image dict management is kept within HexrdConfig and the MaskManager only handles storing masking information and computing masks. Signed-off-by: Brianna Major <[email protected]>
Only call the appropriate conversion function if the data needs to be converted Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Instead grab it from the mask manager after change. Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
Signed-off-by: Brianna Major <[email protected]>
24a6a98
to
ff03ccd
Compare
Signed-off-by: Brianna Major <[email protected]>
Looks like there are still a bunch of calls for |
14cd0b1
to
852760b
Compare
Signed-off-by: Brianna Major <[email protected]>
852760b
to
8ec3332
Compare
I think it better belongs as an attribute, and it is easier to read in this way. Signed-off-by: Patrick Avery <[email protected]>
Don't reset them just yet. This fixes an issue with loading state files, where an exception would be raised because the images were not loaded yet. Signed-off-by: Patrick Avery <[email protected]>
Signed-off-by: Patrick Avery <[email protected]>
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.
I made a few small fixes, and tested nearly everything. It's working well! Great job, @bnmajor! Please look over my changes, and if they look good, then this is ready to merge!
Looks, great, thank you so much! |
No description provided.