Closed phackstock closed 2 years ago
Thanks for looking into this issue! Sweet that the fix is so simple...
Yes, looks like the fix was simple in the end. Hopefully it does not have any unintended side-effects but none of the tests broke and I added an explicit unit test in the PR.
When concatenating
IamDataFrame
objects that have non-standard index dimensions (i.e. anything other thanmodel, scenario
) you currently get an error merging the meta indicators.Minimum example to reproduce
Creating two
IamDataFrames
df1, df2
with index dimensionsmodel, scenario, version
and runningpyam.concat
:yields the following error:
Proposed fix
As the last step of
pyam.concat
is the creation of a newIamDataFrame
it should work so simply carry over the index dimensions of the concatenated meta table, like so: