IAMconsortium / pyam

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

Implement `append` with inconsistent time domain #627

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 append() method in case two IamDataFrame instances have inconsistent time domains.

codecov[bot] commented 2 years ago

Codecov Report

Merging #627 (c05cbe3) into feature/year-and-datetime (c3c1a5f) will increase coverage by 0.0%. The diff coverage is 100.0%.

Impacted file tree graph

@@                    Coverage Diff                    @@
##           feature/year-and-datetime    #627   +/-   ##
=========================================================
  Coverage                       94.5%   94.5%           
=========================================================
  Files                             57      57           
  Lines                           5590    5612   +22     
=========================================================
+ Hits                            5283    5307   +24     
+ Misses                           307     305    -2     
Impacted Files Coverage Δ
pyam/core.py 94.7% <100.0%> (+0.1%) :arrow_up:
pyam/time.py 98.0% <100.0%> (+1.9%) :arrow_up:
tests/test_feature_append.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 c3c1a5f...c05cbe3. Read the comment docs.