Skip to main content

CLI for running LHCb applications from LHCbDIRAC

Project description

LbProdRun

LbProdRun provides a stable interface that can be used by LHCbDIRAC for configuring and launching LHCb's various software applications. In order to generate simulated data and reproduce legacy reprocessing it is necessary for LHCbDIRAC to be able to configure applications dating back to 2011. Previously this was handled by the ProdConf data package however changes to the Run 3 software stack caused ProdConf is not longer generic enough. Instead LbProdRun provides a CLI application (lb-prod-run) which is passed a single JSON file as it's argument. This file contains all of the required information to run an LHCb application and hides the details of configuring the application away from LHCbDIRAC.

Usage

$ lb-prod-run prodspec_DaVinci_00145918_00000004_1.json
# Check the configuration is valid and print the command that would be ran
$ lb-prod-run prodspec_DaVinci_00145918_00000004_1.json --dry-run --verbose

Version 1 schema

The most minimal configuration file that can be passed to version 1 of the schema is:

{"spec_version": 1,
 "application": {"name": "DaVinci", "version": "v45r8"},
 "options": {"files": ["$APPCONFIGOPTS/my-options-file.py"]},
 "output": {"prefix": "00145918_00000004_1", "types": ["d02hhll.strip.mdst"]}
}

When parsing this is padded with the default values:

{"application": {"binary_tag": "best",
                 "data_pkgs": [],
                 "event_timeout": null,
                 "name": "DaVinci",
                 "number_of_processors": 1,
                 "version": "v45r8"},
 "db_tags": {"conddb_tag": null, "dddb_tag": null, "dq_tag": null},
 "input": {"files": null,
           "first_event_number": null,
           "n_of_events": -1,
           "run_number": null,
           "tck": null,
           "xml_file_catalog": null,
           "xml_summary_file": null},
 "options": {"files": ["$APPCONFIGOPTS/my-options-file.py"],
             "format": null,
             "gaudi_extra_options": null,
             "processing_pass": null},
 "output": {"histogram_file": null,
            "prefix": "00145918_00000004_1",
            "types": ["d02hhll.strip.mdst"]}}

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

LbProdRun-0.0.1a1.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

LbProdRun-0.0.1a1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file LbProdRun-0.0.1a1.tar.gz.

File metadata

  • Download URL: LbProdRun-0.0.1a1.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for LbProdRun-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 25f34d5bac7087c6b1306c6ec18bdb95c86633660b393b5d0cd37dc331df7782
MD5 3260feda8edf582ee2e12a1d922cdce1
BLAKE2b-256 149680c0d0c8b27ebb2b0c164049fa1bdb9f65047a1d4fb693fc0d26a950d77c

See more details on using hashes here.

File details

Details for the file LbProdRun-0.0.1a1-py3-none-any.whl.

File metadata

  • Download URL: LbProdRun-0.0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for LbProdRun-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 08afc454dd6ec389c97fb7c746ff923bf22215b3e66c6188f14f4300d89d1fea
MD5 e321df857e51bb30c1659969a0a32db9
BLAKE2b-256 eb2be37ae8e1401f754f3ee6ff9109e5428d120f6deb9ed8d409f3c2ded1cf64

See more details on using hashes here.

Supported by

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