Combination Code
This is a generic averaging code to combine an arbitrary set of (experimental) results under consideration of the statistical errors and their correlations, and systematic errors and correlations, both between the parameters of one measurement and different measurements. The code documentation providing detailed instructions to the example code is available here.
A tutorial is available here
Installation
Install with `pip in a virtual environment
python3 -m venv coco-env
cd coco-env
source bin/activate
python -m pip install combination-code
Doucumentation and examples are available in share/combination-code
The Python package is exposed as:
from combination_code import ResultList, ResultSet, readResultListJSON
Development
Install the package in editable mode with development tooling:
python3 -m venv coco-env
cd coco-env
source bin/activate
git clone ssh://git@gitlab.cern.ch:7999/hflav/shared/combination-code.git
cd combination-code
pip install -e .[dev]
Run all tests (unit + system):
pytest
Test Suite
The repository includes two test layers:
- Unit tests in
tests/unit/for core APIs inResultSet,ResultList, andIntercorrelationMaps. - System tests in
tests/system/that execute tutorial examples fromtutorial/Example1,tutorial/Example2, andtutorial/Example3and validate expected output artifacts.
System tests force a non-interactive Matplotlib backend (Agg) so they run reliably in CI.
Continuous Integration
GitHub Actions workflow build.yml now:
- Runs the test suite on Python 3.10 and 3.14.
- Produces coverage output via
pytest-cov. - Uploads
coverage.xmlas a CI artifact.
Build and release (PyPI)
This is done via Gitlab CI. Simply create a new release with the for vX.Y.Z format following semantic versioning.
Metadata
Release files for combination-code 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| combination_code-1.1.0.tar.gz | 1.8 MB | Without provenance | Details for combination_code-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| combination_code-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for combination_code-1.1.0-py3-none-any.whl |
Total release size: 2.9 MB
Release files / combination_code-1.1.0.tar.gz
| Download URL | combination_code-1.1.0.tar.gz |
|---|---|
| Size | 1.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbe09e045a0a827d33bdd398611373837e578b7a0c3d49203a829c22aa28b321
|
|
BLAKE2b-256 checksum How to use checksums |
d390057a8255be65ef1a1a7ad157d025cf0c116e8bb9fc41fbf846e39fc84186
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / combination_code-1.1.0-py3-none-any.whl
| Download URL | combination_code-1.1.0-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5f880da3ddc58b44e17d8f290ec41234d1785daa7d8acb071bbc14bd5f1226f
|
|
BLAKE2b-256 checksum How to use checksums |
86ca134cb671220a57a2ab55581c391d645a41f46b80f64c8a35d10f542f60d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for combination-code 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.