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-5081: Mark amplifier edges SUSPECT if brighter-fatter is applied. #104

Merged
merged 2 commits into from Aug 7, 2019

Conversation

czwa
Copy link
Contributor

@czwa czwa commented Jun 28, 2019

The edges of amplifiers that have had the brighter-fatter correction
applied may not have had the appropriate correction applied. To
reflect this fact, ensure that the number of edge pixels masked is the
larger of IsrTask.config.numEdgeSuspect and the brighter-fatter kernel
size.

Copy link
Contributor

@jdswinbank jdswinbank left a comment

Choose a reason for hiding this comment

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

Thanks for this! A little more commentary coming on Jira.

python/lsst/ip/isr/isrTask.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/isrTask.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/isrTask.py Outdated Show resolved Hide resolved
@@ -2112,7 +2127,7 @@ def maskAndInterpolateDefects(self, exposure, defectBaseList):
defectBaseList : `List` of `Defects`

"""
self.maskDefects(exposure, defectBaseList)
self.maskDefect(exposure, defectBaseList)
Copy link
Contributor

Choose a reason for hiding this comment

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

...how did this work before? Did this work before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have a clear answer.

@czwa czwa force-pushed the tickets/DM-5081 branch 2 times, most recently from 241ab4b to dcdbd18 Compare July 15, 2019 21:55
python/lsst/ip/isr/isrTask.py Outdated Show resolved Hide resolved
IsrTask.maskDefect() also masks edges if the
IsrTaskConfig.numEdgeSuspect value is non-zero.  This is somewhat
unclear, as the edges aren't really defects.  Splitting this masking
to a new method makes the code clearer, and all cases where maskDefect
is called now also call maskEdges.
The edges of amplifiers that have had the brighter-fatter correction
applied may not have had the appropriate correction applied.  To
reflect this fact, ensure that the number of edge pixels matching the
convolution boundary (1/2 the kernel size) are masked with the EDGE
bit, using the maskEdges method.

Docstring clarification.
@czwa czwa merged commit bc0130e into master Aug 7, 2019
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

3 participants