In the following, projects that work closely together with Scikit-HEP are described. They extend the Python ecosystem in HEP and remain, due to their size and scope, generally independent of Scikit-HEP. In most cases, at least one Scikit-HEP core developer is on the maintainer team or regularly contributes to these packages. These packages are highly recommended for Scikit-HEP developers and users.
zfit: Scalable Pythonic fitting
The zfit project brings together the different model fitting efforts in Python for HEP by providing a stable API and workflow. The implementation of the fitting library is based on TensorFlow, a deep learning framework built for high performance computing on modern architectures, which is mostly hidden to the user. While traditional functionalities such as loading ROOT-files or using the Minuit minimizer are integrated in zfit, the library is completely independent of the ROOT project and has no dependency on it thanks to Scikit-HEP packages.
zfit uses a class-based approach for every part in the workflow and contains convenient base classes that allow for simple customization. Moreover, zfit offers extensive model building, composition and customization capabilities.
The project consists of additional libraries extending the capabilities of the core package.
GooFit: GPU/OpenMP fitting in Python and C++.
GooFit is a powerful, fast fitting library designed to mimic the familiar syntax of ROOT’s RooFit. The code and installation instructions are available here, on GitHub, and a description of the fitting process and API is available on GitHub IO.
conda-forge ROOT: CERN’s ROOT on Conda-Forge.
CERN’s ROOT framework traditionally has been difficult to install – several hours on a single core, with many dependencies. The situation is better than it used to be, it is easier to build and available in more places, but Python was still a challenge; ROOT is linked to just one version of Python, and the one you get with pre-built ROOT can often be the wrong one. And, if you use the Conda Python distribution , which is a popular choice for Scikit-HEP users, the official ROOT team recommendation for building it on top of the Conda stack was: too hard, don’t do it. But now, the ROOT Conda-Forge package provides a fully featured ROOT binary package for macOS or Linux, Python 2.7 and 3.6–3.8, fully integrated into the Conda environment system!
The Conda-Forge ROOT project has been developed by Scikit-HEP admins and is used in the Continuous Integration (CI) system of several of our packages to ensure consistency and interoperability with ROOT. It is used or intended to be used in our ROOT-based packages, like
root_numpy. Analysts can create an environment with ROOT by the following trivial
environment.yml file, often used to create tutorials on binder:
name: uproot_and_root channels: - conda-forge dependencies: - python - jupyterlab # Interactive environment - root # Conda-Forge ROOT - uproot # Can be mixed with other Scikit-HEP packages
cibuildwheel: A utility for building all PyPI supported binary wheels on all CI systems. See our guide for instructions.
The cibuildwheel project provides a Python package that can be installed on CI systems to build Python wheels. All wheels possible for an OS are built, using best practices for installing Python for building compatibly. Extensive environment variable configuration allow exact version specification, manylinux wheel selection, tests, and much more. Specialty architectures and PyPy are also supported.