Skip to content

Conversation

@mrawls
Copy link
Contributor

@mrawls mrawls commented Jul 17, 2025

This PR adds a new flag column to the dia_source_detector table called trailed_glint. DiaSources with this flag fall along a suspected glint trail.

This PR also creates a new data product called trailed_glints that is written out by the Butler. It is a dict with all the fields defined in GlintTrailParameters (in meas_algorithms findGlintTrails.py).

@mrawls mrawls force-pushed the tickets/DM-50988 branch 2 times, most recently from d3a454b to 101fa39 Compare July 17, 2025 10:10
@mrawls mrawls requested a review from ebellm July 17, 2025 20:30
Parameters of all the trails that were found.
"""
trailed_glints = self.findGlints.run(diaSources)
glint_mask = [True if id in trailed_glints.trailed_ids else False for id in diaSources['id']]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
glint_mask = [True if id in trailed_glints.trailed_ids else False for id in diaSources['id']]
glint_mask = [id in glint_trails.trailed_ids for id in diaSources['id']]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching this!

# Check that the entire image was not masked STREAK
self.assertFalse(np.all(streakMaskSet))

def test_trailed_glints(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be good to test that writeGlintInfo provides the expected outputs as well.

@mrawls mrawls force-pushed the tickets/DM-50988 branch 3 times, most recently from ddf42fb to 6d6bfe0 Compare July 24, 2025 08:06
mrawls added 2 commits July 24, 2025 12:04
Adds a new bool column to the diaSource catalog.
In addition, a new catalog with fit trail info is persisted.
@mrawls mrawls force-pushed the tickets/DM-50988 branch from 6d6bfe0 to cee2b5c Compare July 24, 2025 19:04
@mrawls mrawls merged commit ee7824c into main Jul 24, 2025
2 checks passed
@mrawls mrawls deleted the tickets/DM-50988 branch July 24, 2025 21: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.

2 participants