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-12979: add visualizeVisit #43

Merged
merged 1 commit into from Dec 19, 2017
Merged

DM-12979: add visualizeVisit #43

merged 1 commit into from Dec 19, 2017

Conversation

PaulPrice
Copy link
Contributor

This provides a facility to produce a binned image of the entire focal
plane (butler product visit_camera).

Useful for viewing the results of the new y-band background subtraction feature.

Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

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

Looks good, except one tiny bit of Python I don't understand.

imageFactory=afwImage.ImageF,
binSize=binning
)
image = visualizeVisit.makeCameraImage(camera, dict(exp for exp in exposures if exp is not None), binning)
Copy link
Member

Choose a reason for hiding this comment

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

I don't see how the dict construction can possibly work here. If you pass dict an iterable doesn't each element (e.g. exp) need to be a (key, value) pair? And if so, isn't if exp is not None malformed?

Copy link
Contributor Author

@PaulPrice PaulPrice Dec 18, 2017

Choose a reason for hiding this comment

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

readImage is returning a key,value pair, so naming the iteration variable exp is a bit misleading. I'll fix that.

This provides a facility to produce a binned image of the entire focal
plane (butler product visit_camera).
@PaulPrice PaulPrice merged commit db9b501 into master Dec 19, 2017
@ktlim ktlim deleted the tickets/DM-12979 branch August 25, 2018 06:50
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.

None yet

2 participants