cabinetry is a Python library designed for building and steering profile likelihood fits, particularly used in high-energy physics for statistical analysis. It currently stands at version 0.6.0 and maintains an active development cycle with regular patch and minor releases, often coinciding with updates to its core dependency, `pyhf`.
pip install cabinetryVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates the core workflow of cabinetry: defining a statistical model via a configuration, generating dummy data and sample histograms, building a `pyhf` workspace, performing a profile likelihood fit, and visualizing the results. The example generates in-memory histograms to ensure runnability without external files.
Upgrade your Python environment to 3.8 or a later compatible version.
Ensure your `pyhf` installation is version 0.7.x or later (`pip install 'pyhf>=0.7.0'`). Review `pyhf`'s changelog for any direct API changes if you interact with `pyhf` objects outside of cabinetry's high-level API.
Update all function calls to use keyword arguments. For instance, `cabinetry.fit.fit(model, data)` would become `cabinetry.fit.fit(model=model, data=data)`.
Call `pyhf.set_backend('your_backend_name')` at the beginning of your script if you require a specific `pyhf` backend.Ensure your `matplotlib` installation is version 3.5.0 or newer (`pip install 'matplotlib>=3.5.0'`).
Update the function call to explicitly use keyword arguments. For example, change `cabinetry.fit.fit(model, data)` to `cabinetry.fit.fit(model=model, data=data)`.
Upgrade your Python environment to version 3.8 or newer to meet the library's requirements.
Ensure `pyhf` is updated to a compatible version, specifically `pyhf>=0.7.0` for cabinetry v0.5.0 and later (`pip install 'pyhf>=0.7.0'`).
Upgrade `matplotlib` to at least version 3.5.0 (`pip install 'matplotlib>=3.5.0'`).