IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
226 stars 118 forks source link

Add filter by time_domain #613

Closed danielhuppmann closed 2 years ago

danielhuppmann commented 2 years ago

Please confirm that this PR has done the following:

Description of PR

Note: this PR is targeted to the feature/year-and-datetime branch that collects all developments related to #596.

This PR extends the filter() method with an option to filter by the time_domain.

codecov[bot] commented 2 years ago

Codecov Report

Merging #613 (3d78394) into feature/year-and-datetime (f8580ac) will increase coverage by 0.0%. The diff coverage is 96.5%.

Impacted file tree graph

@@                    Coverage Diff                    @@
##           feature/year-and-datetime    #613   +/-   ##
=========================================================
  Coverage                       94.3%   94.3%           
=========================================================
  Files                             54      55    +1     
  Lines                           5478    5501   +23     
=========================================================
+ Hits                            5168    5190   +22     
- Misses                           310     311    +1     
Impacted Files Coverage Δ
pyam/core.py 94.7% <83.3%> (-0.1%) :arrow_down:
pyam/filter.py 100.0% <100.0%> (ø)
tests/conftest.py 100.0% <100.0%> (ø)
tests/test_core.py 100.0% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f8580ac...3d78394. Read the comment docs.