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-1.5.2.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

LbProdRun-1.5.2-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file LbProdRun-1.5.2.tar.gz.

File metadata

  • Download URL: LbProdRun-1.5.2.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for LbProdRun-1.5.2.tar.gz
Algorithm Hash digest
SHA256 d0af3d912cd675f84af3072aab932d77f0ac0cd4ec6be2f6c4dbd1caac48efa3
MD5 be99f1cfe29693ce6840b9e778575b14
BLAKE2b-256 ab08a45df74332983e77abcb0854c0af1f3fe297c51588c94daabea2e7a6e5fa

See more details on using hashes here.

File details

Details for the file LbProdRun-1.5.2-py3-none-any.whl.

File metadata

  • Download URL: LbProdRun-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for LbProdRun-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c1bb02b3f6b4a9dd64111102fc88f2ef6bb913b18a137be4f3760b898a6e1dc0
MD5 20ef4345992c9bd020a244662a11a317
BLAKE2b-256 89cc47c42c6af39384c4be5a82452995be555b6c2b4eb113dcea320e0958dfc9

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