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-40412: Add edge flag filtering to trailedSourceFilter.py #180

Merged
merged 2 commits into from Oct 23, 2023

Conversation

bsmartradio
Copy link
Contributor

@bsmartradio bsmartradio commented Oct 10, 2023

Now that trailed sources which cross over into edge regions are flagged, add in a filter to trailedSourceFilter.py. Currently, this filter is far more aggressive than it should be as it counts trailed sources crossing over into nodata regions as edges. This will be fixed in a later commit.

Add trailed flag to trailedSourceFilter and update the unit tests accordingly.
Copy link
Contributor

@mrawls mrawls left a comment

Choose a reason for hiding this comment

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

My suggestions are all to enhance clarity, not to change any functionality, generally this looks good and I'm glad it is working now!

python/lsst/ap/association/association.py Outdated Show resolved Hide resolved
python/lsst/ap/association/association.py Show resolved Hide resolved
python/lsst/ap/association/association.py Show resolved Hide resolved
python/lsst/ap/association/association.py Outdated Show resolved Hide resolved
python/lsst/ap/association/trailedSourceFilter.py Outdated Show resolved Hide resolved
tests/test_trailedSourceFilter.py Show resolved Hide resolved
tests/test_trailedSourceFilter.py Outdated Show resolved Hide resolved
@bsmartradio bsmartradio force-pushed the tickets/DM-40412 branch 2 times, most recently from 73b8fab to 0addc20 Compare October 23, 2023 20:22
If doTrailedResult does not come before diaObjects, then if there are no diaObjects but there are genuine sources that need filtering, they were not being filtered. The filter is moved earlier and then returns an altered diaSources catalog. If the filter is not run, it returns an empty dataframe similar to how matchedDiaSources can also be empty.
@bsmartradio bsmartradio merged commit ed9b5c1 into main Oct 23, 2023
2 checks passed
@bsmartradio bsmartradio deleted the tickets/DM-40412 branch October 23, 2023 20:38
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