From f0035cf25961b037b675a18a02ef8a3ebbac3a0f Mon Sep 17 00:00:00 2001 From: Ben Krikler Date: Mon, 5 Aug 2019 17:47:23 +0200 Subject: [PATCH 1/2] Add changelog --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..40c92a2 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,28 @@ +# Changelog +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). + +## [Unreleased] +### Added +- Adds support for masking variables in their definition, issue #59 [@benkrikler](https://github.com/benkrikler) +- Adds several constants for variable expressions, issue #21 [@benkrikler](https://github.com/benkrikler) +- Added this changelog [@benkrikler](https://github.com/benkrikler) + +### Changed +- Use `pandas.groupby(..).counts()` to make binned dataframes, issue #51 [@benkrikler](https://github.com/benkrikler) + +### Removed + +## [0.13.0] - 2019-07-28 +### Added +- Add support for multiple output file types for binned dataframes, issue #57 [@asnaylor](https://github.com/asnaylor) + +### Changed +- Fix issue with binned dataframe expressions and multiple similar branch names, issue #60 [@benkrikler](https://github.com/benkrikler) +- Enable multiple cut-flow stages and make the input chunk.tree have consistent array and arrays methods, issue #61 [@benkrikler](https://github.com/benkrikler) + +### Removed + +## [0.12.0] - 2019-05-28 From 564e143e6d19daf87d0fb6cfe66021e6b3ba8f64 Mon Sep 17 00:00:00 2001 From: Ben Krikler Date: Mon, 5 Aug 2019 18:49:06 +0200 Subject: [PATCH 2/2] Will be releasing the update today, so put this in changelog --- CHANGELOG.md | 7 +++++++ tests/selection/test_stage.py | 2 ++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40c92a2..c9da54b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added + +### Changed + +### Removed + +## [0.13.1] - 2019-08-05 +### Added - Adds support for masking variables in their definition, issue #59 [@benkrikler](https://github.com/benkrikler) - Adds several constants for variable expressions, issue #21 [@benkrikler](https://github.com/benkrikler) - Added this changelog [@benkrikler](https://github.com/benkrikler) diff --git a/tests/selection/test_stage.py b/tests/selection/test_stage.py index 83611c7..f412cfe 100644 --- a/tests/selection/test_stage.py +++ b/tests/selection/test_stage.py @@ -148,3 +148,5 @@ def test_sequential_stages(cutflow_1, select_2, infile, full_event_range, tmpdir cutflow_2.event(chunk) assert len(chunk.tree) == 2 + jet_py = chunk.tree.array("Jet_Py") + assert pytest.approx(jet_py.flatten()) == [49.641838, 45.008915, -78.01798, 60.730812]