Closed danielhuppmann closed 3 months ago
Attention: Patch coverage is 94.11765%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 95.0%. Comparing base (
ddbb88e
) to head (595be43
). Report is 5 commits behind head on main.:exclamation: Current head 595be43 differs from pull request most recent head b234348. Consider uploading reports for the commit b234348 to get more accurate results
Files | Patch % | Lines |
---|---|---|
pyam/core.py | 88.8% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
As noted in #819, the feature was implemented as described. I'm indifferent whether this gets merged or the other.
LGTM, thanks @danielhuppmann also for adding some tests =)
Learned from the best about being careful of having complete documentation and good test coverage... And I didn't want to be all nitpicky about your PR.
Please confirm that this PR has done the following:
Description of PR
This PR implements the explicit signature for
categorize()
and marks the existing signature and the top-level function as deprecated (to be removed for release 3.0) similar to #804 for thevalidate()
method.For explanation: the rationale for the top-level function
pyam.categorize(df)
made sense only because it allowed to apply filters by other dimensions (model, scenario, region, unit) in addition to the criteria based on variable and years. The new signature allows to directly slice-and-validate on any dimension.