triggercalib 2.0.7__tar.gz → 2.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {triggercalib-2.0.7 → triggercalib-2.0.9}/CONTRIBUTING.md +3 -1
- {triggercalib-2.0.7 → triggercalib-2.0.9}/PKG-INFO +1 -1
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/releases.md +4 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/stylesheets/colours.css +1 -1
- triggercalib-2.0.9/docs/stylesheets/dark_mode_code.css +71 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/environment-docs.yml +4 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/mkdocs.yml +1 -0
- triggercalib-2.0.9/releases/v2/r0/v2r0p8.md +22 -0
- triggercalib-2.0.9/releases/v2/r0/v2r0p9.md +23 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/core/Sideband.py +3 -2
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/version.py +2 -2
- {triggercalib-2.0.7 → triggercalib-2.0.9}/.coveragerc +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/.flake8 +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/.gitignore +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/.gitlab-ci.yml +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/COPYING +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/README.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/build-docs.sh +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/contributing.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/cheat-sheet.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/getting-started.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/index.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/running-triggercalib.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/trigger-efficiencies.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/troubleshooting.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/tutorials/2d-binning.ipynb +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/tutorials/combined.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/tutorials/fit-and-count.ipynb +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/tutorials/hlt1-and-hlt2.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/tutorials/hlt1.ipynb +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/tutorials/hlt2.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/tutorials/index.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/guide/tutorials/sweights.ipynb +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/img/logo-smaller.png +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/img/logo.jpeg +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/img/tistos.png +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/index.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/javascripts/mathjax.js +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/javascripts/notebooks.js +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/reference/core.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/reference/index.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/reference/utils.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/stylesheets/fonts.css +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/docs/stylesheets/styles.css +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/pyproject.toml +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/template.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v1/r4/v1r4p0.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v1/r4/v1r4p1.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v1/r4/v1r4p2.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v1/r4/v1r4p3.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v1/r4/v1r4p4.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v1/r4/v1r4p5.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v1/r5/v1r5p0.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v1/r5/v1r5p1.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v1/r5/v1r5p2.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v1/r5/v1r5p3.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v2/r0/v2r0p0.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v2/r0/v2r0p1.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v2/r0/v2r0p2.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v2/r0/v2r0p3.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v2/r0/v2r0p4.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v2/r0/v2r0p5.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v2/r0/v2r0p6.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/releases/v2/r0/v2r0p7.md +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/requirements-ci.txt +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/requirements-dev.txt +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/__init__.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/commands/__init__.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/commands/fit_and_count.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/commands/sideband.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/commands/sweights.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/core/BaseEff.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/core/Binning.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/core/FitCountEff.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/core/Fitter.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/core/Model.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/core/SWeightsEff.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/core/SidebandEff.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/core/__init__.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/__init__.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/config/binning.yaml +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/config/model.yaml +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/config/sideband.yaml +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/conftest.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/test_commands.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/test_core.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/test_fit_count.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/test_sideband.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/test_stats.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/test_sweights.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/tests/test_utils.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/utils/__init__.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/utils/helpers.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/utils/io.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/utils/stats.py +0 -0
- {triggercalib-2.0.7 → triggercalib-2.0.9}/src/triggercalib/utils/tests.py +0 -0
|
@@ -56,4 +56,6 @@ Fixes to the formatting can be made by running `black src` from the top level of
|
|
|
56
56
|
|
|
57
57
|
The documentation is built with `mkdocs`, using the environment defined in `environment-docs.yml`.
|
|
58
58
|
To build the documentation locally for the first time, run `source build-docs.sh` from the top level of the repository.
|
|
59
|
-
After this, you can view the documentation locally by running `python -m mkdocs serve` and open the documentation in your browser at http://127.0.0.1:8000 (or http://127.0.0.0:8000).
|
|
59
|
+
After this, you can view the documentation locally by running `python -m mkdocs serve` and open the documentation in your browser at http://127.0.0.1:8000 (or http://127.0.0.0:8000).
|
|
60
|
+
|
|
61
|
+
Please note that the documentation is published on a release-by-release basis using `mike`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: triggercalib
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.9
|
|
4
4
|
Summary: A turnkey package for estimating LHCb trigger efficiencies
|
|
5
5
|
Project-URL: Homepage, https://gitlab.cern.ch/lhcb-rta/triggercalib/
|
|
6
6
|
Project-URL: Documentation, https://triggercalib.docs.cern.ch/
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* =============================== */
|
|
2
|
+
/* Monokai-inspired code theme */
|
|
3
|
+
/* Material MkDocs dark override */
|
|
4
|
+
/* =============================== */
|
|
5
|
+
|
|
6
|
+
html body[data-md-color-scheme="dark"] pre {
|
|
7
|
+
background-color: #272822 !important; /* Monokai base background */
|
|
8
|
+
border: 1px solid #3a3a3a;
|
|
9
|
+
border-radius: 6px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Base text */
|
|
13
|
+
html body[data-md-color-scheme="dark"] .highlight,
|
|
14
|
+
html body[data-md-color-scheme="dark"] .highlight code {
|
|
15
|
+
color: #f8f8f2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Comments (Monokai gray-green) */
|
|
19
|
+
html body[data-md-color-scheme="dark"] .c,
|
|
20
|
+
html body[data-md-color-scheme="dark"] .c1,
|
|
21
|
+
html body[data-md-color-scheme="dark"] .ch,
|
|
22
|
+
html body[data-md-color-scheme="dark"] .cm {
|
|
23
|
+
color: #75715e !important;
|
|
24
|
+
font-style: italic;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Keywords (pink/purple Monokai) */
|
|
28
|
+
html body[data-md-color-scheme="dark"] .k,
|
|
29
|
+
html body[data-md-color-scheme="dark"] .kd,
|
|
30
|
+
html body[data-md-color-scheme="dark"] .kt,
|
|
31
|
+
html body[data-md-color-scheme="dark"] .kn {
|
|
32
|
+
color: #f92672;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Strings (green) */
|
|
36
|
+
html body[data-md-color-scheme="dark"] .s,
|
|
37
|
+
html body[data-md-color-scheme="dark"] .s1,
|
|
38
|
+
html body[data-md-color-scheme="dark"] .s2 {
|
|
39
|
+
color: #e6db74;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Functions / methods */
|
|
43
|
+
html body[data-md-color-scheme="dark"] .nf {
|
|
44
|
+
color: #a6e22e;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Numbers */
|
|
48
|
+
html body[data-md-color-scheme="dark"] .nv {
|
|
49
|
+
color: #ae81ff !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Classes / types */
|
|
53
|
+
html body[data-md-color-scheme="dark"] .nc {
|
|
54
|
+
color: #66d9ef;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Operators / punctuation (keeps structure readable) */
|
|
58
|
+
html body[data-md-color-scheme="dark"] .o,
|
|
59
|
+
html body[data-md-color-scheme="dark"] .p {
|
|
60
|
+
color: #f8f8f2;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
html body[data-md-color-scheme="dark"] .jp-CodeCell .highlight {
|
|
64
|
+
background: #272822 !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
html body[data-md-color-scheme="dark"] .jp-RenderedHTMLCommon pre,
|
|
68
|
+
html body[data-md-color-scheme="dark"] .jp-OutputArea pre {
|
|
69
|
+
background: #272822 !important;
|
|
70
|
+
color: #f8f8f2 !important;
|
|
71
|
+
}
|
|
@@ -3,11 +3,13 @@ channels:
|
|
|
3
3
|
- defaults
|
|
4
4
|
- conda-forge
|
|
5
5
|
dependencies:
|
|
6
|
+
- python=3.11
|
|
6
7
|
- pip
|
|
7
8
|
- setuptools
|
|
8
9
|
- wheel
|
|
9
10
|
- pip:
|
|
10
11
|
- mike
|
|
12
|
+
- mistune==2.0.5
|
|
11
13
|
- mkdocs==1.6.1
|
|
12
14
|
- mkdocs-autorefs==1.4.3
|
|
13
15
|
- mkdocs-get-deps==0.2.0
|
|
@@ -17,3 +19,5 @@ dependencies:
|
|
|
17
19
|
- mkdocstrings==1.0.1
|
|
18
20
|
- mkdocstrings-python==2.0.1
|
|
19
21
|
- nbconvert==7.16.1
|
|
22
|
+
- pygments==2.17.2
|
|
23
|
+
- pymdown_extensions==10.14.3
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
## TriggerCalib 2.0.8 (13-05-2026)
|
|
2
|
+
|
|
3
|
+
TriggerCalib 2.0.8 is built from ``master`` and contains the following changes with respect to 2.0.0.
|
|
4
|
+
|
|
5
|
+
Potentially breaking changes are labelled with :warning:
|
|
6
|
+
|
|
7
|
+
### New features
|
|
8
|
+
- Enhance Fitter and related CLI (!105)
|
|
9
|
+
|
|
10
|
+
### Bug fixes
|
|
11
|
+
- Fix LaTeX in docs (!97, contributed by @jherdiec)
|
|
12
|
+
- Fix spelling mistake in pyproject.toml (!98, contributed by @jherdiec)
|
|
13
|
+
- Fix handling of friend trees in v2.0 (!99)
|
|
14
|
+
- Remove print statement of branches (!102)
|
|
15
|
+
- Fix disabling of implicit MT for friend trees (!103)
|
|
16
|
+
- Handle finding of RVec weights (!104)
|
|
17
|
+
- Add twine to CI requirements (!108)
|
|
18
|
+
- Fix deploy rule in CI (!109)
|
|
19
|
+
- Fix scale calculation in Sideband (!110)
|
|
20
|
+
|
|
21
|
+
### Other
|
|
22
|
+
- Package and test with Python 3.11 (!106)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## TriggerCalib 2.0.9 (19-05-2026)
|
|
2
|
+
|
|
3
|
+
TriggerCalib 2.0.9 is built from ``master`` and contains the following changes with respect to 2.0.0.
|
|
4
|
+
|
|
5
|
+
Potentially breaking changes are labelled with :warning:
|
|
6
|
+
|
|
7
|
+
### New features
|
|
8
|
+
- Enhance Fitter and related CLI (!105)
|
|
9
|
+
|
|
10
|
+
### Bug fixes
|
|
11
|
+
- Fix LaTeX in docs (!97, contributed by @jherdiec)
|
|
12
|
+
- Fix spelling mistake in pyproject.toml (!98, contributed by @jherdiec)
|
|
13
|
+
- Fix handling of friend trees in v2.0 (!99)
|
|
14
|
+
- Remove print statement of branches (!102)
|
|
15
|
+
- Fix disabling of implicit MT for friend trees (!103)
|
|
16
|
+
- Handle finding of RVec weights (!104)
|
|
17
|
+
- Add twine to CI requirements (!108)
|
|
18
|
+
- Fix deploy rule in CI (!109)
|
|
19
|
+
- Fix scale calculation in Sideband (!110)
|
|
20
|
+
|
|
21
|
+
### Other
|
|
22
|
+
- Package and test with Python 3.11 (!106)
|
|
23
|
+
- Monokai style for dark mode code blocks (!111, contributed by @anmorris)
|
|
@@ -72,8 +72,9 @@ class Sideband:
|
|
|
72
72
|
signal_width / (lower_sideband_width + upper_sideband_width)
|
|
73
73
|
"""
|
|
74
74
|
if not (width):
|
|
75
|
-
width =
|
|
76
|
-
|
|
75
|
+
width = self.signal[1] - self.signal[0]
|
|
76
|
+
|
|
77
|
+
return width / np.sum(np.diff(self.sidebands))
|
|
77
78
|
|
|
78
79
|
def range_cut(self):
|
|
79
80
|
"""Generate a cut string for the full variable range
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '2.0.
|
|
22
|
-
__version_tuple__ = version_tuple = (2, 0,
|
|
21
|
+
__version__ = version = '2.0.9'
|
|
22
|
+
__version_tuple__ = version_tuple = (2, 0, 9)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|