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-32769: Implement streak detection and masking in single frame processing #284

Merged
merged 1 commit into from Oct 26, 2023

Conversation

mrawls
Copy link
Contributor

@mrawls mrawls commented Oct 18, 2023

This PR propagates streak mask info through detectAndMeasureTask.

@mrawls mrawls marked this pull request as draft October 19, 2023 00:22
@mrawls mrawls marked this pull request as ready for review October 19, 2023 18:40
@mrawls mrawls force-pushed the tickets/DM-32769 branch 2 times, most recently from f854411 to 5b11695 Compare October 25, 2023 21:40
@mrawls mrawls changed the title DM-32769: Implement streak detection and masking in AP DM-32769: Implement streak detection and masking in single frame processing Oct 25, 2023
Copy link
Contributor

@bsmartradio bsmartradio left a comment

Choose a reason for hiding this comment

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

Does what is says, just curious about the one comment

@@ -1265,6 +1265,7 @@ def detectTestSources(exposure):
sigma=None, # The appropriate sigma is calculated from the PSF
doSmooth=True
)
exposure.mask.addMaskPlane("STREAK") # Cannot run maskStreaksTask here, as it's in pipe_tasks
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious why we need to know that we can't run maskStreakTask at this location. Is that something we might want to do?

Copy link
Contributor

Choose a reason for hiding this comment

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

I see in another PR you do self.exposure.mask.addMaskPlane("STREAK") # add empty streak mask plane in lieu of maskStreaksTask as the explanation instead. Maybe swap to that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call for consistency's sake, will update. (I originally called the task here, and realized that wouldn't work since pipe_tasks explicitly depends on ip_diffim being setup, and the reverse cannot be true.)

Also add the STREAK mask plane to the test exposure util.
Without this, the pixelFlags plugin will fail, and we
cannot run maskStreaksTask directly since it's in pipe_tasks.
@mrawls mrawls merged commit 1f6ed9b into main Oct 26, 2023
2 checks passed
@mrawls mrawls deleted the tickets/DM-32769 branch October 26, 2023 20:46
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