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-42472: Add minimum valid annulus fraction as a configuration parameter in StackBrightStarsTask #879
Conversation
…eter in StackBrightStarsTas
read_stars : `list` of `lsst.pipe.tasks.processBrightStars.BrightStarStamp` | ||
List of bright star stamps to be stacked. | ||
""" | ||
# finding stamps that do not have enough valid pixels in the annulus |
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 would re-word this in the imperative, i.e.:
Find stamps that do not have enough valid pixels in the annulus
for stamp in read_stars: | ||
if stamp.validAnnulusFraction < self.config.minValidAnnulusFraction: | ||
inValidStamps.append(stamp) | ||
# removing stamps that do not have enough valid pixels in the annulus |
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.
Similarly:
Remove stamps that do not have enough valid pixels in the annulus
List of bright star stamps to be stacked. | ||
""" | ||
# finding stamps that do not have enough valid pixels in the annulus | ||
inValidStamps = [] |
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.
This should just be: invalidStamps
(i.e., lowercase V)
inValidStamps.append(stamp) | ||
# removing stamps that do not have enough valid pixels in the annulus | ||
if len(inValidStamps): | ||
for inValidStamp in inValidStamps: |
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.
And lowercase V here also.
No description provided.