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-47901: Configure streak masking for ComCam #367

Merged
merged 4 commits into from
Dec 12, 2024
Merged

Conversation

isullivan
Copy link
Contributor

No description provided.

@isullivan isullivan force-pushed the tickets/DM-47901 branch 3 times, most recently from ff83967 to a421749 Compare December 10, 2024 08:55
@mrawls mrawls self-requested a review December 10, 2024 22:39
_table = afwTable.SourceTable.make(self.schema)
self.detection.run(table=_table, exposure=binnedExposure, doSmooth=True)
sigma = difference.psf.computeShape(difference.psf.getAveragePosition()).getDeterminantRadius()
_table = afwTable.SourceTable.make(afwTable.SourceTable.makeMinimalSchema())
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you specifically not want the self.schema we used previously that had some extra columns floating around? I assumed it was more efficient to pass along an existing schema than making a new one from scratch, but it probably doesn't matter much either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The minimal schema is trivial to create, and makes detection slightly faster since the resulting table has far fewer columns.

self.maskStreaks.maxFitIter = 10
# Only mask to 2 sigma in width
self.maskStreaks.nSigmaMask = 2
self.maskStreaks.absMinimumKernelHeight = 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add docstring for the absMinimumKernelHeight config setting

@isullivan isullivan merged commit 1a23822 into main Dec 12, 2024
2 checks passed
@isullivan isullivan deleted the tickets/DM-47901 branch December 12, 2024 00:39
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.

2 participants