IAMconsortium / pyam

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

`interpolate` fails if 'accidently applied twice' #371

Closed gidden closed 3 years ago

gidden commented 4 years ago

If the exact same interpolate call is used twice, the underlying data layout is appended in both wide and long.

Example code:

df.interpolate(2016) # works
df.interpolate(2016) # bad data now

Image attached interp

danielhuppmann commented 4 years ago

Interesting, because we do have a test specifically for calling that function twice...

https://github.com/IAMconsortium/pyam/blob/063875bdb73f270d37b829c4c58ac7ec4e17ac53/tests/test_core.py#L710

danielhuppmann commented 4 years ago

@gidden could you make a PR with a test that fails with this specific issue?