Skip to content

Commit

Permalink
Release candidate 2.2.2 (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Apr 19, 2024
1 parent 2e5c85f commit 7b46e61
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 56 deletions.
5 changes: 5 additions & 0 deletions RELEASE_NOTES.md
@@ -1,3 +1,8 @@
# Release v2.2.2

Patch release to correctly handle regexp-characters (`[]{}?^`) in `filter()`
and better handling of the logging-configuration.

# Release v2.2.1

Patch release to explicitly include the **requests** dependency, which was dropped
Expand Down
94 changes: 45 additions & 49 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyam/core.py
Expand Up @@ -306,8 +306,8 @@ def print_meta_row(m, t, lst):
[
print_meta_row(m, t, self.meta[m].unique())
for m, t in zip(
self.meta.columns[0:meta_rows], self.meta.dtypes[0:meta_rows]
)
self.meta.columns[0:meta_rows], self.meta.dtypes[0:meta_rows]
)
]
)
# print `...` if more than `meta_rows` columns
Expand Down
4 changes: 2 additions & 2 deletions pyam/figures.py
Expand Up @@ -52,8 +52,8 @@ def sankey(df, mapping):
mapping, orient="index", columns=["source", "target"]
).merge(df._data, how="left", left_index=True, right_on="variable")
label_mapping = {
label: i
for i, label in enumerate(set(pd.concat([_df["source"], _df["target"]])))
label: i
for i, label in enumerate(set(pd.concat([_df["source"], _df["target"]])))
}
_df.replace(label_mapping, inplace=True)
region = get_index_levels(_df, "region")[0]
Expand Down
4 changes: 1 addition & 3 deletions pyam/statistics.py
Expand Up @@ -111,9 +111,7 @@ def _add_to_index(self, idx, sub_idx=None):
msg = "if `groupby` is used, index `{}` must have format `{}`"
raise ValueError(msg.format(idx, "(idx0, idx1)"))
if self.idx_depth == 1 and sub_idx is not None:
raise ValueError(
f"index depth set to 1, found `({idx}, {sub_idx})`"
)
raise ValueError(f"index depth set to 1, found `({idx}, {sub_idx})`")
if self.idx_depth == 2 and sub_idx is None:
raise ValueError(f"index depth set to 2, found `({idx})`")

Expand Down

0 comments on commit 7b46e61

Please sign in to comment.