Skip to content

Commit

Permalink
Merge pull request #18 from robcalon/bugfix/1.3.1
Browse files Browse the repository at this point in the history
Bugfix/1.3.1
  • Loading branch information
robcalon authored Oct 20, 2023
2 parents 40806df + 42798f8 commit cf8952b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"}]
Expand Down
2 changes: 1 addition & 1 deletion src/pyetm/client/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/pyetm/utils/categorisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit cf8952b

Please sign in to comment.