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

DM-42012: Enable reading sub-regions and components for MaskedImage #474

Merged
merged 2 commits into from Dec 6, 2023

Conversation

arunkannawadi
Copy link
Member

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@arunkannawadi arunkannawadi force-pushed the tickets/DM-42012 branch 2 times, most recently from 27c76ba to 60535c1 Compare December 6, 2023 16:10
Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks.

# Put the MaskedImage into the Butler and get a reference to it.
dataId = {"visit": 42, "instrument": "DummyCam", "physical_filter": "d-r"}
ref = self.butler.put(mi, "noise", dataId)
handle = self.butler.getDeferred(ref)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also do a butler.get(ref) to make sure you really do get the original masked image back?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a test. I had initially avoided it thinking it checks a more generic butler capability and had nothing specific to do with MaskedImage.

@timj
Copy link
Member

timj commented Dec 6, 2023

PS Typo in commit message: "prembles"

@arunkannawadi arunkannawadi merged commit ac60e39 into main Dec 6, 2023
6 checks passed
@arunkannawadi arunkannawadi deleted the tickets/DM-42012 branch December 6, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants