-
Notifications
You must be signed in to change notification settings - Fork 9
DM-52106: Image differencing cleanups #425
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
Conversation
The value will always be zero. This should have been removed when the relevant code was deleted in DM-51360
BrunoSanchez
left a comment
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.
Some minor comments, but changes look good to me.
It improves the flow of the subtractImages.py file.
| doSubtractBackground = lsst.pex.config.Field( | ||
| doc="Subtract the background fit when solving the kernel?", | ||
| doc="Subtract the background fit when solving the kernel?" | ||
| " It is generally better to instead subtract the background in detectAndMeasure.", |
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.
Space would go in line 176
|
|
||
| def _sourceSelector(self, sources, mask): | ||
| def _sourceSelector(self, sources, bbox): | ||
| """Select sources from a catalog that meet the selection criteria. |
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 think that the docstring doesn't reflect exactly what the method is doing.
What about:
"""Select catalog sources that fall inside the provided bounding box,
with an edge proximity rejection as configured in `restrictKernelEdgeSources`.
"""
| selected = self.sourceSelector.selectSources(sources).selected | ||
| if self.config.restrictKernelEdgeSources: | ||
| rejectRadius = 2*self.config.makeKernel.kernel.active.kernelSize | ||
| bbox.grow(-rejectRadius) |
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.
Cool, I didn't know about this.
| try: | ||
| try: |
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.
Explain better this double try block, and make explicit the logic of this flow control.
ffb9016 to
97d6a7f
Compare
Moving a number of cleanups from DM-44936, which is not expected to merge soon.