From caf9632733af2769560e3e1e8974f43bcc66001b Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Wed, 15 Jul 2020 13:02:59 +0200 Subject: [PATCH] =?UTF-8?q?Copy=20indexers=20dict=20in=20reporting?= =?UTF-8?q?=E2=80=A6AttrSeries.sel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ixmp/reporting/attrseries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ixmp/reporting/attrseries.py b/ixmp/reporting/attrseries.py index 9dd18cb46..311eb6075 100644 --- a/ixmp/reporting/attrseries.py +++ b/ixmp/reporting/attrseries.py @@ -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]