From 120473fde400fafde1c3e4e5e91c0182b3f53478 Mon Sep 17 00:00:00 2001 From: Daniel Huppmann Date: Mon, 9 Aug 2021 19:03:18 +0200 Subject: [PATCH] Release candidate 1.1.0 (#570) --- RELEASE_NOTES.md | 11 ++++++++--- pyam/index.py | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 400c350d4..5c21f7357 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,4 +1,10 @@ -# Next Release +# Release v1.1.0 + +## Highlights + +- Update pyam-colors to be consistent with IPCC AR6 palette +- Enable `colors` keyword argument as list in `plot.pie()` +- Fix compatibility with pandas v1.3 ## API changes @@ -7,8 +13,7 @@ the attribute `_LONG_IDX` as deprecated. Please use `dimensions` instead. ## Individual updates -- [#566](https://github.com/IAMconsortium/pyam/pull/566) Updated AR6 default color pallet to final version -used by WG1 +- [#566](https://github.com/IAMconsortium/pyam/pull/566) Updated AR6 default color pallet to final version used by WG1 - [#564](https://github.com/IAMconsortium/pyam/pull/564) Add an example with a secondary axis to the plotting gallery - [#563](https://github.com/IAMconsortium/pyam/pull/563) Enable `colors` keyword argument as list in `plot.pie()` - [#562](https://github.com/IAMconsortium/pyam/pull/562) Add `get_data_column()`, refactor filtering by the time domain diff --git a/pyam/index.py b/pyam/index.py index 11d15bd25..1efbab04f 100644 --- a/pyam/index.py +++ b/pyam/index.py @@ -72,7 +72,7 @@ def replace_index_values(df, level, mapping, rows=None): # if duplicate levels exist, re-map the codes level_mapping = _unique_levels.get_indexer(_levels) _codes = np.where(index.codes[n] != -1, level_mapping[index.codes[n]], -1) - return index.set_codes(_codes, n).set_levels(_unique_levels, n) + return index.set_codes(_codes, level=n).set_levels(_unique_levels, level=n) def append_index_col(index, values, name, order=False):