Skip to content

Conversation

@parejkoj
Copy link
Contributor

@parejkoj parejkoj commented Feb 26, 2025

No description provided.

dataset = lsst.meas.base.tests.TestDataset(bbox)
# positive isolated source on diffim
dataset.addSource(instFlux=.5E5, centroid=lsst.geom.Point2D(25, 26))
# negative isolated source on diffim
Copy link
Member

Choose a reason for hiding this comment

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

I do not understand how this creates an isolated negative source - but this is not the part of this review, and I can follow up later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I need to clarify a comment above this. These sources are added to the template, and thus will be negative on the diffim because the science image is empty. Two regions of the image are made negative on the template, and thus become positive sources on the diffim. I'll push a clarification.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And this definitely makes me wish we'd merged the cleanups I'd made on DM-46908, because that would have made this code a lot cleaner (I could have just made the inserted sources explicitly negative from the start).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

* Have to pre-initialize the merged schema, so that the output schema
matches the output catalog schema.
* Set is_ngative on the post-blended output (though this is never used,
since we always merge the footprints).
* Check is_negative consistency in different tests.
* Improve some test docs/comments.
@parejkoj parejkoj merged commit ac5d579 into main Feb 27, 2025
2 checks passed
@parejkoj parejkoj deleted the tickets/DM-49210 branch February 27, 2025 02:50
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