Skip to main content

Pythonic class collection that helps you structure external data from LHC / HEP experiments.

Project description

order logo
Documentation status Lint and test Code coverge Package version License PyPI downloads Open in colab Open in binder

If you’re designing a high-energy physics analysis (e.g. with data recorded by an LHC experiment at CERN), manual bookkeeping of external data can get complicated quite fast. order provides a pythonic class collection that helps you structuring

  • analyses,

  • MC campaigns,

  • datasets,

  • physics process and cross sections,

  • channels,

  • categories,

  • variables, and

  • systematic shifts.

Getting started

See the intro.ipynb notebook for an introduction to the most important classes and an example setup of a small analysis. You can also run the notebook interactively on colab or binder:

Open in colab Open in binder

You can find the full API documentation on readthedocs.

Installation and dependencies

Install order via pip:

pip install order

The only dependencies are scinum and six, which are installed with the above command.

Contributing and testing

If you like to contribute, I’m happy to receive pull requests. Just make sure to add new test cases and run them via:

python -m unittest tests

In general, tests should be run for Python 2.7, 3.6, 3.7, 3.8, 3.9 and 3.10. To run tests in a docker container, do

# run the tests
./tests/docker.sh python:3.9

# or interactively by adding a flag "1" to the command
./tests/docker.sh python:3.9 1
> pip install -r requirements.txt
> python -m unittest tests

In addition, PEP 8 compatibility should be checked with flake8:

flake8 order tests setup.py

Development

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

order-2.0.0.tar.gz (38.9 kB view details)

Uploaded Source

File details

Details for the file order-2.0.0.tar.gz.

File metadata

  • Download URL: order-2.0.0.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for order-2.0.0.tar.gz
Algorithm Hash digest
SHA256 138642fa1f9dd2d09a509678fc139b88690c4998ac63f4390cd59396787f43a9
MD5 d50ea9032ba37a23d74f273046331cac
BLAKE2b-256 507e3d80d0c6960e4b3cc548d63578d04294dba4b38b60ed198b1a22ec293cdd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page