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-15180: Turn off coordinate covariance calculation #348

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

cmsaunders
Copy link
Contributor

No description provided.

@cmsaunders cmsaunders marked this pull request as ready for review August 18, 2023 14:56
Copy link
Contributor

@isullivan isullivan left a comment

Choose a reason for hiding this comment

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

One minor comment.

@@ -172,7 +172,7 @@ def calculateThreshold(self, exposure, seed, sigma=None, minFractionSourcesFacto
peaks = source.getFootprint().getPeaks()
assert len(peaks) == 1
source.set(key, peaks[0].getF())
source.updateCoord(exposure.getWcs())
source.updateCoord(exposure.getWcs(), include_covariance=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a comment explaining why covariance is turned off here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done; for further context, my read of the code was that the source catalog would not be used outside this function, so there was no point adding the needed columns to the catalog and doing extra calculations.

@cmsaunders cmsaunders merged commit d97887c into main Sep 15, 2023
2 checks passed
@cmsaunders cmsaunders deleted the tickets/DM-15180 branch September 15, 2023 18:09
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