Skip to content

Commit

Permalink
feat: update to cabinetry 0.5.0 (#15)
Browse files Browse the repository at this point in the history
* update to cabinetry 0.5.0
* add sections showcasing modifier grid visualization and yield table saving
  • Loading branch information
alexander-held authored Sep 25, 2022
1 parent 388e624 commit f51ae41
Show file tree
Hide file tree
Showing 7 changed files with 535 additions and 454 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*png
histograms/
workspaces/
tables/

# HEPData example
bottom-squarks*
201 changes: 101 additions & 100 deletions HEPData_workspace.ipynb

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ This repository collects tutorial material for [cabinetry](https://github.com/sc
- `example.ipynb`: walkthrough for basic `cabinetry` usage, [run on Binder](https://mybinder.org/v2/gh/cabinetry/cabinetry-tutorials/master?filepath=example.ipynb)!
- `HEPData_workspace.ipynb`: using `cabinetry` with a workspace from HEPData, [run on Binder](https://mybinder.org/v2/gh/cabinetry/cabinetry-tutorials/master?filepath=HEPData_workspace.ipynb)!

See also the [PyHEP 2021 talk: *Binned template fits with cabinetry*](https://indico.cern.ch/event/1019958/contributions/4421868/) and the associated notebook in the [PyHEP-2021-cabinetry](https://github.com/alexander-held/PyHEP-2021-cabinetry/) repository.
See also the [PyHEP 2021 talk: *"Binned template fits with cabinetry"*](https://indico.cern.ch/event/1019958/contributions/4421868/) and the associated notebook in the [PyHEP-2021-cabinetry](https://github.com/alexander-held/PyHEP-2021-cabinetry/) repository.
The [PyHEP 2022 talk *"End-to-end physics analysis with Open Data: the Analysis Grand Challenge"*](https://indico.cern.ch/event/1150631/contributions/5000592/) shows `cabinetry` in use in a full analysis pipeline.

The tutorials in this repository are generally kept up-to-date with the latest available `cabinetry` version.
They are currently compatible with `cabinetry` [`v0.4.1`](https://github.com/scikit-hep/cabinetry/releases/tag/v0.4.1).
They are currently compatible with `cabinetry` [`v0.5.0`](https://github.com/scikit-hep/cabinetry/releases/tag/v0.5.0).
This `cabinetry` version requires Python 3.7 or newer, since `cabinetry` dropped support for Python 3.6 with version [`v0.2.0`](https://github.com/scikit-hep/cabinetry/releases/tag/v0.2.0).
2 changes: 1 addition & 1 deletion binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cabinetry[contrib]==0.4.1
cabinetry[contrib]==0.5.0
1 change: 1 addition & 0 deletions config_histograms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Samples:

- Name: "Signal"
SamplePath: "Signal"
DisableStaterror: True

- Name: "Background"
SamplePath: "Background"
Expand Down
1 change: 1 addition & 0 deletions config_ntuples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Samples:
Tree: "signal"
SamplePath: "prediction.root"
Weight: "weight"
DisableStaterror: True

- Name: "Background"
Tree: "background"
Expand Down
778 changes: 427 additions & 351 deletions example.ipynb

Large diffs are not rendered by default.

0 comments on commit f51ae41

Please sign in to comment.