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
Conversation
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.
Thanks for this! A little more commentary coming on Jira.
@@ -2112,7 +2127,7 @@ def maskAndInterpolateDefects(self, exposure, defectBaseList): | |||
defectBaseList : `List` of `Defects` | |||
|
|||
""" | |||
self.maskDefects(exposure, defectBaseList) | |||
self.maskDefect(exposure, defectBaseList) |
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.
...how did this work before? Did this work before?
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 don't have a clear answer.
241ab4b
to
dcdbd18
Compare
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.
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.