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-33837: MemoryMetricTask does not support new-style metadata #96

Merged
merged 2 commits into from Feb 28, 2022

Conversation

kfindeisen
Copy link
Member

@kfindeisen kfindeisen commented Feb 28, 2022

This PR updates the implementation of MemoryMetricTask to support both version 0 and version 1 of task metadata.

The proposed solution is specific to MemoryMetricTask; centralizing metadata versioning in MetadataMetricTask would be difficult to do without breaking API compatibility.

@kfindeisen kfindeisen requested a review from timj February 28, 2022 21:51
Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

Looks good. I have a question on the test and a possible simplification of the version number retrieval.

python/lsst/verify/tasks/commonMetrics.py Outdated Show resolved Hide resolved
tests/test_commonMetrics.py Show resolved Hide resolved
@kfindeisen kfindeisen merged commit a2309f1 into main Feb 28, 2022
@kfindeisen kfindeisen deleted the tickets/DM-33837 branch February 28, 2022 23:44
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