Skip to content

Commit

Permalink
feat: use jupytext for demonstrator notebooks (#92)
Browse files Browse the repository at this point in the history
* added paired py files for ATLAS and CMS demonstrator analyses and added pre-commit config file
* added pre-commit/jupytext instructions

---------
Co-authored-by: ekauffma <elmaka8700@gmail.com>
Co-authored-by: Alexander Held <alexander.held@cern.ch>
  • Loading branch information
ekauffma authored Feb 3, 2023
1 parent b7dbb33 commit 344af98
Show file tree
Hide file tree
Showing 8 changed files with 2,498 additions and 1,135 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/mwouts/jupytext
rev: v1.14.1 # CURRENT_TAG/COMMIT_HASH
hooks:
- id: jupytext
args: [--sync]
9 changes: 6 additions & 3 deletions analyses/atlas-open-data-hzz/HZZ_analysis_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -972,10 +972,13 @@
"interpreter": {
"hash": "3893bc5b6e3c583e8433aeb5f586a02793edec63a5fa22ceec6853b31493c624"
},
"jupytext": {
"formats": "ipynb,py:percent"
},
"kernelspec": {
"display_name": "pyhf",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "pyhf"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -987,7 +990,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.8.15"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 344af98

Please sign in to comment.