From 06d8df6b9de38832c9872ed37f450120669cb875 Mon Sep 17 00:00:00 2001 From: "Calon, Rob" Date: Thu, 19 Oct 2023 10:26:30 +0200 Subject: [PATCH 1/3] bugfix fixed recursionerror --- src/pyetm/client/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyetm/client/session.py b/src/pyetm/client/session.py index 59e363d..41fe1b0 100644 --- a/src/pyetm/client/session.py +++ b/src/pyetm/client/session.py @@ -60,7 +60,7 @@ def etm_url(self): """model URL""" # raise error - if self.etm_url is None: + if self._etm_url is None: raise ValueError("ETModel URL not set on initialisation.") return self._etm_url From 343ac44a2c96dd2b9b43b6e62784b9e34dbdfce8 Mon Sep 17 00:00:00 2001 From: "Calon, Rob" Date: Fri, 20 Oct 2023 15:41:34 +0200 Subject: [PATCH 2/3] bugfix use list instead of index --- src/pyetm/utils/categorisation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyetm/utils/categorisation.py b/src/pyetm/utils/categorisation.py index 61596e9..dccb4c6 100644 --- a/src/pyetm/utils/categorisation.py +++ b/src/pyetm/utils/categorisation.py @@ -154,6 +154,6 @@ def categorise_curves( curves.columns = pd.MultiIndex.from_tuples(midx, names=names) # aggregate over levels - curves = curves.T.groupby(level=names).sum().T + curves = curves.T.groupby(level=list(names)).sum().T return curves.sort_index(axis=1) From 42798f8d10d7410d4a70135aa4427311254c6dfc Mon Sep 17 00:00:00 2001 From: "Calon, Rob" Date: Fri, 20 Oct 2023 16:26:21 +0200 Subject: [PATCH 3/3] version 1.3.2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b21f39a..ecb2f86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pyetm" -version = "1.3.1" +version = "1.3.2" description = "Python-ETM Connector" authors = [{name = "Rob Calon", email = "robcalon@protonmail.com"}]