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-42472: Add minimum valid annulus fraction as a configuration parameter in StackBrightStarsTask #879

Merged
merged 2 commits into from Jan 19, 2024

Conversation

bazkiaei
Copy link
Contributor

No description provided.

@bazkiaei bazkiaei changed the title DM-42472: Add minimum valid annulus fraction as a configuration parameter in StackBrightStarsTas DM-42472: Add minimum valid annulus fraction as a configuration parameter in StackBrightStarsTask Jan 15, 2024
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
Copy link
Contributor

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
Copy link
Contributor

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 = []
Copy link
Contributor

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:
Copy link
Contributor

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.

@bazkiaei bazkiaei merged commit 560d897 into main Jan 19, 2024
2 checks passed
@bazkiaei bazkiaei deleted the tickets/DM-42472 branch January 19, 2024 06:28
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