Skip to content

Commit

Permalink
surrender to black, for now
Browse files Browse the repository at this point in the history
  • Loading branch information
gidden committed Jul 8, 2022
1 parent ad03e0c commit 776494b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pyam/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,11 +819,9 @@ def set_meta(self, meta, name=None, index=None):
if isinstance(meta, pd.DataFrame):
if meta.index.names != self.meta.index.names:
# catch Model, Scenario instead of model, scenario
meta = (
meta
.rename(columns={i.capitalize(): i for i in META_IDX})
.set_index(self.meta.index.names)
)
meta = meta.rename(
columns={i.capitalize(): i for i in META_IDX}
).set_index(self.meta.index.names)
meta = meta.loc[self.meta.index.intersection(meta.index)]
self.meta = merge_meta(meta, self.meta, ignore_conflict=True)
return
Expand Down

0 comments on commit 776494b

Please sign in to comment.