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-16536: Migrate all metrics from ap.verify.measurements #41

Merged
merged 3 commits into from Mar 18, 2019

Conversation

kfindeisen
Copy link
Member

This PR defines MetricTask subclasses for the ap_association.numNewDiaObjects, ap_association.numUnassociatedDiaObjects, ap_association.fracUpdatedDiaObjects, and ap_association.totalUnassociatedDiaObjects metrics, which were previously implemented as functions in ap_verify (see lsst/ap_verify#63). This change requires that ap_association depend on lsst.verify.

Design note: most of the complexity of the task code comes from MetricTask instances not being allowed to assume a particular granularity for their metric. This, in turn, is partly because of Gen 2 (i.e., MetricsControllerTask) limitations, but largely because it's not yet known who will be responsible for metrics aggregation.

@kfindeisen kfindeisen requested a review from ebellm March 1, 2019 01:30
Copy link
Contributor

@ebellm ebellm left a comment

Choose a reason for hiding this comment

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

One bug and a few small comments

python/lsst/ap/association/metrics.py Outdated Show resolved Hide resolved
tests/test_metrics.py Outdated Show resolved Hide resolved
tests/test_metrics.py Outdated Show resolved Hide resolved
tests/test_metrics.py Outdated Show resolved Hide resolved
@kfindeisen kfindeisen force-pushed the tickets/DM-16536 branch 2 times, most recently from 5ceead1 to 5656c2b Compare March 13, 2019 21:21
@kfindeisen kfindeisen requested a review from ebellm March 13, 2019 21:22
@kfindeisen kfindeisen merged commit 22ca914 into master Mar 18, 2019
@kfindeisen kfindeisen deleted the tickets/DM-16536 branch March 18, 2019 18:46
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