IAMconsortium / pyam

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

Add warning if IIASA API returns empty #697

Closed danielhuppmann closed 2 years ago

danielhuppmann commented 2 years ago

Please confirm that this PR has done the following:

Description of PR

This PR fixes an unexpected error when querying data via the IIASA API from a database that is empty. It also adds the option to filter index(), meta() and properties().

closes #676

codecov[bot] commented 2 years ago

Codecov Report

Merging #697 (6998744) into main (7f00c79) will increase coverage by 0.0%. The diff coverage is 95.5%.

@@          Coverage Diff          @@
##            main    #697   +/-   ##
=====================================
  Coverage   94.8%   94.8%           
=====================================
  Files         58      58           
  Lines       5823    5856   +33     
=====================================
+ Hits        5525    5557   +32     
- Misses       298     299    +1     
Impacted Files Coverage Δ
pyam/iiasa.py 86.1% <92.3%> (+0.1%) :arrow_up:
tests/test_iiasa.py 97.5% <100.0%> (+0.3%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.