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-43176: Flag sources with no flux after re-distribution. #93

Merged
merged 1 commit into from Mar 12, 2024

Conversation

fred3m
Copy link
Contributor

@fred3m fred3m commented Mar 8, 2024

Sometimes errors in the pipelines, like incorrect PSF modeling, can cause sources with valid scarlet models to have no flux after flux re-distribution when the footprints are being reconstructed. This commit adds a deblend_zeroFlux column to identify sources that have zero flux in a given band for follow-up.

@fred3m fred3m force-pushed the tickets/DM-43176 branch 3 times, most recently from e6fcb33 to 6fb301e Compare March 12, 2024 12:30
footprint = afwFootprint(SpanSet(spanList))
footprint.setPeakCatalog(heavy.peaks)
zeroImage = afwImage(array=np.array([[0]], dtype=np.float32), xy0=center, dtype=dtype)
heavy = makeHeavyFootprint(footprint, MaskedImage(zeroImage, dtype=dtype))
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
heavy = makeHeavyFootprint(footprint, MaskedImage(zeroImage, dtype=dtype))
heavy = HeavyFootprintF(footprint)
heavy.getImageArray()[0] = 0.0

is probably a bit more efficient (no need for Image or MaskedImage temporaries), but I'm not sure it's enough better to merit another Jenkins run. Just another way to do it.

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 idea. I have to rebase the other packages anyway, so I'll make this change, rebase all of them, and just Jenkins without the ci packages.

Sometimes errors in the pipelines, like incorrect PSF modeling,
can cause sources with valid scarlet models to have no flux
after flux re-distribution when the footprints are being
reconstructed. This commit adds a `deblend_zeroFlux` column to
identify sources that have zero flux in a given band for
follow-up.
@fred3m fred3m merged commit c0b71ef into main Mar 12, 2024
2 checks passed
@fred3m fred3m deleted the tickets/DM-43176 branch March 12, 2024 23:54
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