diff --git a/CHANGELOG.md b/CHANGELOG.md index 32741de..8f15a8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.8.2] - 2020-09-29 +### Fixed +- Issue with uncertainty band on stacked plots, PR #45 + ## [0.8.1] - 2020-06-19 ### Fixed - Allow multiple expansions for KeepSpecificBins in postproc, PR #38 diff --git a/fast_plotter/plotting.py b/fast_plotter/plotting.py index 5a48131..cf85b90 100644 --- a/fast_plotter/plotting.py +++ b/fast_plotter/plotting.py @@ -412,14 +412,13 @@ def plot_1d_many(df, prefix="", data="data", signal=None, dataset_col="dataset", def _merge_datasets(df, style, dataset_col, param_name="_merge_datasets", err_from_sumw2=False): if style == "stack": - utils.calculate_error(df, do_rel_err=not err_from_sumw2) df = utils.stack_datasets(df, dataset_level=dataset_col) elif style == "sum": df = utils.sum_over_datasets(df, dataset_level=dataset_col) - utils.calculate_error(df, do_rel_err=not err_from_sumw2) elif style: msg = "'{}' must be either 'sum', 'stack' or None. Got {}" raise RuntimeError(msg.format(param_name, style)) + utils.calculate_error(df, do_rel_err=not err_from_sumw2) return df diff --git a/fast_plotter/version.py b/fast_plotter/version.py index 2e5339c..daf5440 100644 --- a/fast_plotter/version.py +++ b/fast_plotter/version.py @@ -12,5 +12,5 @@ def split_version(version): return tuple(result) -__version__ = '0.8.1' +__version__ = '0.8.2' version_info = split_version(__version__) # noqa diff --git a/setup.cfg b/setup.cfg index 0782f6c..e741c1f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.8.1 +current_version = 0.8.2 commit = True tag = False