-
Notifications
You must be signed in to change notification settings - Fork 9
DM-50988: Flag DIASources consistent with glints from rotating space junk #420
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
Conversation
d3a454b to
101fa39
Compare
| 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']] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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']] |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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.
ddf42fb to
6d6bfe0
Compare
Adds a new bool column to the diaSource catalog. In addition, a new catalog with fit trail info is persisted.
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_glintsthat is written out by the Butler. It is a dict with all the fields defined in GlintTrailParameters (in meas_algorithms findGlintTrails.py).