Skip to main content

rhalphalib

Codestyle

Ralph

Quickstart

CMSSW with EL8/EL9

We use the scram-venv utility to create a python virtual environment in our CMSSW area:

cmsrel CMSSW_14_1_0_pre4
cd CMSSW_14_1_0_pre4/src
cmsenv
scram-venv
cmsenv
git clone https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit
cd HiggsAnalysis/CombinedLimit
git checkout v10.1.0
scram b -j4
python3 -m pip install git+https://github.com/nsmith-/rhalphalib.git

Elsewhere (no warranty)

First, install Combine v10 using your choice of installation instructions (with CMSSW, using LCG, or inside a Conda environment). In a python virtual environment, run:

python3 -m pip install --user git+https://github.com/nsmith-/rhalphalib.git

Usage

Take a look at test_rhalphalib.py for examples of how to use the package. You can run a test with, e.g.

curl -Ol https://raw.githubusercontent.com/nsmith-/rhalphalib/master/tests/test_rhalphalib.py
python3 test_rhalphalib.py
cd tmp/testModel
. build.sh
combine -M FitDiagnostics model_combined.root

An example output of the final line is:

 <<< Combine >>>
 <<< v10.1.0 >>>
>>> Random number generator seed is 123456
>>> Method used is FitDiagnostics

 --- FitDiagnostics ---
Best fit r: 0.999999  -0.208174/+0.212715  (68% CL)
Done in 0.59 min (cpu), 0.59 min (real)

Metadata

Release files for rhalphalib 0.3.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 rhalphalib 0.3.0
File Size Uploaded
rhalphalib-0.3.0.tar.gz 34.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rhalphalib 0.3.0
File Interpreter ABI Platform
rhalphalib-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 66.6 kB

Release files / rhalphalib-0.3.0.tar.gz

Download URL rhalphalib-0.3.0.tar.gz
Size 34.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d7689b28e0e09af13f7464cc0cf7c77404ed0d859dfefff5f66dca215808a957
BLAKE2b-256 checksum
How to use checksums
b341776622413a262755a1a268bad54f94e8ff031cbf033740969c32d63bedc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 26, 2025.

Transparency log

Release files / rhalphalib-0.3.0-py3-none-any.whl

Download URL rhalphalib-0.3.0-py3-none-any.whl
Size 31.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32773a195bfc09f628f38d6ed522aaa9623abcb1ed4d6302717bf8d7f8e2b92f
BLAKE2b-256 checksum
How to use checksums
8c5b9c3dc0c70cbfd107cbc4ee876bc629ea011674ebc5635ef5938167fe1362
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 26, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

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