triggercalib 2.0.2__tar.gz → 2.0.4__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.2 → triggercalib-2.0.4}/PKG-INFO +1 -1
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/releases.md +4 -0
- triggercalib-2.0.4/releases/v2/r0/v2r0p3.md +13 -0
- triggercalib-2.0.4/releases/v2/r0/v2r0p4.md +14 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/commands/fit_and_count.py +1 -1
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/commands/sideband.py +1 -1
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/commands/sweights.py +1 -1
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/core/FitCountEff.py +2 -2
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/core/SWeightsEff.py +1 -1
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/utils/io.py +14 -4
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/version.py +2 -2
- {triggercalib-2.0.2 → triggercalib-2.0.4}/.coveragerc +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/.flake8 +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/.gitignore +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/.gitlab-ci.yml +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/CONTRIBUTING.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/COPYING +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/README.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/build-docs.sh +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/contributing.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/cheat-sheet.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/getting-started.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/index.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/running-triggercalib.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/trigger-efficiencies.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/troubleshooting.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/tutorials/2d-binning.ipynb +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/tutorials/combined.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/tutorials/fit-and-count.ipynb +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/tutorials/hlt1-and-hlt2.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/tutorials/hlt1.ipynb +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/tutorials/hlt2.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/tutorials/index.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/guide/tutorials/sweights.ipynb +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/img/logo-smaller.png +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/img/logo.jpeg +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/img/tistos.png +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/index.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/javascripts/mathjax.js +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/javascripts/notebooks.js +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/reference/core.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/reference/index.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/reference/utils.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/stylesheets/colours.css +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/stylesheets/fonts.css +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/docs/stylesheets/styles.css +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/environment-docs.yml +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/mkdocs.yml +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/pyproject.toml +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/template.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v1/r4/v1r4p0.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v1/r4/v1r4p1.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v1/r4/v1r4p2.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v1/r4/v1r4p3.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v1/r4/v1r4p4.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v1/r4/v1r4p5.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v1/r5/v1r5p0.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v1/r5/v1r5p1.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v1/r5/v1r5p2.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v1/r5/v1r5p3.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v2/r0/v2r0p0.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v2/r0/v2r0p1.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/releases/v2/r0/v2r0p2.md +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/requirements-ci.txt +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/requirements-dev.txt +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/__init__.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/commands/__init__.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/core/BaseEff.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/core/Binning.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/core/Fitter.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/core/Model.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/core/Sideband.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/core/SidebandEff.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/core/__init__.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/__init__.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/config/binning.yaml +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/config/model.yaml +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/config/sideband.yaml +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/conftest.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/test_commands.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/test_core.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/test_fit_count.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/test_sideband.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/test_stats.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/test_sweights.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/tests/test_utils.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/utils/__init__.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/utils/helpers.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/utils/stats.py +0 -0
- {triggercalib-2.0.2 → triggercalib-2.0.4}/src/triggercalib/utils/tests.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: triggercalib
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.4
|
|
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,13 @@
|
|
|
1
|
+
## TriggerCalib 2.0.3 (12-03-2026)
|
|
2
|
+
|
|
3
|
+
TriggerCalib 2.0.3 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
|
+
|
|
8
|
+
### Bug fixes
|
|
9
|
+
- Fix LaTeX in docs (!97, contributed by @jherdiec)
|
|
10
|
+
- Fix spelling mistake in pyproject.toml (!98, contributed by @jherdiec)
|
|
11
|
+
- Fix handling of friend trees in v2.0 (!99)
|
|
12
|
+
- Remove print statement of branches (!102)
|
|
13
|
+
- Fix disabling of implicit MT for friend trees (!103)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
## TriggerCalib 2.0.4 (18-03-2026)
|
|
2
|
+
|
|
3
|
+
TriggerCalib 2.0.4 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
|
+
|
|
8
|
+
### Bug fixes
|
|
9
|
+
- Fix LaTeX in docs (!97, contributed by @jherdiec)
|
|
10
|
+
- Fix spelling mistake in pyproject.toml (!98, contributed by @jherdiec)
|
|
11
|
+
- Fix handling of friend trees in v2.0 (!99)
|
|
12
|
+
- Remove print statement of branches (!102)
|
|
13
|
+
- Fix disabling of implicit MT for friend trees (!103)
|
|
14
|
+
- Handle finding of RVec weights (!104)
|
|
@@ -67,7 +67,7 @@ def main(args=None):
|
|
|
67
67
|
ws_observable = None
|
|
68
68
|
ws_pdf = None
|
|
69
69
|
|
|
70
|
-
if args.friend_path is None
|
|
70
|
+
if args.friend_path is not None or args.friend_tree is not None:
|
|
71
71
|
print("INFO: disabling implicit multi-threading")
|
|
72
72
|
R.DisableImplicitMT()
|
|
73
73
|
elif args.threads > 1:
|
|
@@ -50,7 +50,7 @@ def main(args=None):
|
|
|
50
50
|
args["weight"] = args.get("weight", None)
|
|
51
51
|
args = SimpleNamespace(**args)
|
|
52
52
|
|
|
53
|
-
if args.friend_path is None
|
|
53
|
+
if args.friend_path is not None or args.friend_tree is not None:
|
|
54
54
|
print("INFO: disabling implicit multi-threading")
|
|
55
55
|
R.DisableImplicitMT()
|
|
56
56
|
elif args.threads > 1:
|
|
@@ -67,7 +67,7 @@ def main(args=None):
|
|
|
67
67
|
ws_observable = None
|
|
68
68
|
ws_pdf = None
|
|
69
69
|
|
|
70
|
-
if args.friend_path is None
|
|
70
|
+
if args.friend_path is not None or args.friend_tree is not None:
|
|
71
71
|
print("INFO: disabling implicit multi-threading")
|
|
72
72
|
R.DisableImplicitMT()
|
|
73
73
|
elif args.threads > 1:
|
|
@@ -137,8 +137,8 @@ class FitCountEff(BaseEff):
|
|
|
137
137
|
self.rdf = self.rdf.Define(weight_branch, "*".join(self.weight))
|
|
138
138
|
else:
|
|
139
139
|
self.rdf = self.rdf.Define(weight_branch, self.weight)
|
|
140
|
-
observables_list += [weight_branch]
|
|
141
|
-
print("INFO: Applying weight(s) '{self.weight}'")
|
|
140
|
+
observables_list += [weight_branch]
|
|
141
|
+
print(f"INFO: Applying weight(s) '{self.weight}'")
|
|
142
142
|
else:
|
|
143
143
|
weight_branch = None
|
|
144
144
|
|
|
@@ -148,7 +148,7 @@ class SWeightsEff(BaseEff):
|
|
|
148
148
|
self.rdf = self.rdf.Define(weight_branch, "*".join(self.weight))
|
|
149
149
|
else:
|
|
150
150
|
self.rdf = self.rdf.Define(weight_branch, self.weight)
|
|
151
|
-
observables_list += [weight_branch]
|
|
151
|
+
observables_list += [weight_branch]
|
|
152
152
|
else:
|
|
153
153
|
weight_branch = None
|
|
154
154
|
|
|
@@ -119,11 +119,21 @@ def is_in_rdf(branch: Union[str, List[str]], rdf: R.RDataFrame):
|
|
|
119
119
|
Returns:
|
|
120
120
|
(bool): True if the branch is in the RDataFrame
|
|
121
121
|
"""
|
|
122
|
-
|
|
123
122
|
rdf_branches = [str(col) for col in rdf.GetColumnNames()]
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
|
|
124
|
+
if not isinstance(branch, List):
|
|
125
|
+
branch = [branch]
|
|
126
|
+
|
|
127
|
+
clean_branches = []
|
|
128
|
+
for b in branch:
|
|
129
|
+
if b.endswith(
|
|
130
|
+
"]"
|
|
131
|
+
): # Handles the possibility of RVec weights, which would be referenced by [i]
|
|
132
|
+
clean_branches.append(b.rsplit("[", 1)[0])
|
|
133
|
+
else:
|
|
134
|
+
clean_branches.append(b)
|
|
135
|
+
|
|
136
|
+
return all([b in rdf_branches for b in clean_branches])
|
|
127
137
|
|
|
128
138
|
|
|
129
139
|
def write_config(config: dict, path: str):
|
|
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
|