IAMconsortium / pyam

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

Harmonize logging of ixmp4 and pyam in Jupyter notebooks #774

Closed danielhuppmann closed 1 year ago

danielhuppmann commented 1 year ago

Description of PR

This PR makes sure that pyam and ixmp4 logging output look the same in Jupyter notebook, by adding a stream handler instead of setting up a BasicConfig.

codecov[bot] commented 1 year ago

Codecov Report

Merging #774 (7901ad1) into main (525ede9) will increase coverage by 0.2%. The diff coverage is 67.3%.

@@           Coverage Diff           @@
##            main    #774     +/-   ##
=======================================
+ Coverage   94.6%   94.8%   +0.2%     
=======================================
  Files         62      62             
  Lines       6107    6079     -28     
=======================================
- Hits        5779    5768     -11     
+ Misses       328     311     -17     
Files Changed Coverage Δ
pyam/__init__.py 58.8% <0.0%> (-10.0%) :arrow_down:
pyam/utils.py 92.0% <50.0%> (+1.8%) :arrow_up:
pyam/core.py 95.1% <84.2%> (-0.1%) :arrow_down:
pyam/logging.py 100.0% <100.0%> (+35.0%) :arrow_up:
tests/test_core.py 100.0% <100.0%> (ø)
tests/test_io.py 100.0% <100.0%> (ø)