Skip to main content

Tool to locally run tests for AnalysisProductions

Project description

LbAPLocal

LbAPLocal is the python library for running offline tests for the LHCb AnalysisProductions framework.

Usage

After installing, LbAPLocal can be run from the command line with the following options:

Usage: lb-ap [OPTIONS] COMMAND [ARGS]...

  Command line tool for the LHCb AnalysisProductions

Options:
  --help  Show this message and exit.

Commands:
  list       List the available production folders by running lb-ap list...
  render     Render the info.yaml for a given production
  test       Execute a job locally
  debug      Start an interactive session inside the job's environment
  reproduce  Reproduce an existing online test locally

To see which productions are available:

$ lb-ap list
The available productions are:
* MyAnalysis

To see which jobs are available for a given production:

$ lb-ap list MyAnalysis
The available jobs for MyAnalysis are:
* My2016MagDownJob
* My2016MagUpJob

To render the templating in info.yaml for a given production:

$ lb-ap render MyAnalysis

To run a test of a job interactively:

$ lb-ap debug MyAnalysis My2016MagDownJob

Welcome to analysis productions debug mode:

The production can be tested by running:

gaudirun.py -T '$ANALYSIS_PRODUCTIONS_DYNAMIC/Lb2Lll/MC_2017_MagDown_Lb2PsiL_mm_strip_autoconf.py' '$ANALYSIS_PRODUCTIONS_BASE/Lb2Lll/stripping_seq.py' prodConf_DaVinci_00012345_00006789_1.py

[DaVinci v45r5] output $

To test a job non-interactively:

$ lb-ap test MyAnalysis My2016MagDownJob
Success! Output can be found in xxxxxxxxxxxx

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

LbAPLocal-0.0.7.tar.gz (297.7 kB view details)

Uploaded Source

Built Distribution

LbAPLocal-0.0.7-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file LbAPLocal-0.0.7.tar.gz.

File metadata

  • Download URL: LbAPLocal-0.0.7.tar.gz
  • Upload date:
  • Size: 297.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for LbAPLocal-0.0.7.tar.gz
Algorithm Hash digest
SHA256 702800f88ce21576c0f61eed9b830e5580b5d5cd0f4d69d91981db898f23605b
MD5 bd32408f912e237df458660d330f21d2
BLAKE2b-256 87d3b3965785938a7591895e3ce3822d19920516c6cd1f43d249ebfa6a90e7fc

See more details on using hashes here.

File details

Details for the file LbAPLocal-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: LbAPLocal-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for LbAPLocal-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1c1174fb17e3f45fad2e809d3e749a479699ad8b8062a10647f030635ef07e1a
MD5 b2df706283b82a4af3ebd2ca3f99b624
BLAKE2b-256 7b2fc8f9aeabfb1b647c4c5376b64be2365d11755b2587c95384e514df1a9135

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