Skip to content

Commit

Permalink
Copy indexers dict in reporting…AttrSeries.sel
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Jul 15, 2020
1 parent 653d2a2 commit caf9632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ixmp/reporting/attrseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def rename(self, new_name_or_name_dict):

def sel(self, indexers=None, drop=False, **indexers_kwargs):
"""Like :meth:`xarray.DataArray.sel`."""
indexers = indexers or {}
indexers = indexers.copy() if indexers else {}
indexers.update(indexers_kwargs)
if len(indexers) == 1:
level, key = list(indexers.items())[0]
Expand Down

0 comments on commit caf9632

Please sign in to comment.