Skip to main content

Combination Code

Pipeline Status Coverage

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 in ResultSet, ResultList, and IntercorrelationMaps.
  • System tests in tests/system/ that execute tutorial examples from tutorial/Example1, tutorial/Example2, and tutorial/Example3 and 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.xml as 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)

Source distribution for combination-code 1.1.0
File Size Uploaded
combination_code-1.1.0.tar.gz 1.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for combination-code 1.1.0
File Interpreter ABI Platform
combination_code-1.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page