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

tickets/DM-27208 #28

Merged
merged 8 commits into from Nov 3, 2020
Merged

tickets/DM-27208 #28

merged 8 commits into from Nov 3, 2020

Conversation

fred3m
Copy link
Contributor

@fred3m fred3m commented Oct 28, 2020

Add columns to make it easier to cross check meas_deblender and meas_extensions_scarlet.

fred3m added 8 commits October 20, 2020 16:00
At some point we stopped using the mask plane for weights and
started just using the inverse variance. There is some disagreement
over whether or not this is the right thing to do, and testing with
scarlet has shown including weights tends to produce worse results.
So this commit reintroduces the mask plane weights and makes that
the default configuration.
@@ -592,10 +596,16 @@ def deblend(self, mExposure, sources):
self._skipParent(src, mask)
self.log.trace('Parent %i: skipping masked footprint', int(src.getId()))
continue
if len(peaks) > self.config.maxNumberOfPeaks:
if self.config.maxNumberOfPeaks > 0 and len(peaks) > self.config.maxNumberOfPeaks:
Copy link

Choose a reason for hiding this comment

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

It doesn't particularly matter much but you could store this value before the loop rather than checking every time, or simply set maxNumberOfPeaks to np.inf if it's zero.

@fred3m fred3m merged commit 8953f44 into master Nov 3, 2020
@fred3m fred3m deleted the tickets/DM-27208 branch November 3, 2020 14:16
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