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.

Installation

For now it can be installed by running

python -m pip install git+https://gitlab.cern.ch/lhcb-dpa/analysis-productions/lbaplocal.git

In the future it will become available within the LHCb environment,

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

Uploaded Source

Built Distribution

LbAPLocal-0.0.3-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: LbAPLocal-0.0.3.tar.gz
  • Upload date:
  • Size: 22.6 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.3.tar.gz
Algorithm Hash digest
SHA256 1e6de39e0b264b350f15e2a16aeb669bb428cc30b225791e0cac1666d9e9933d
MD5 ee302de66eef9e77d166c2112cc4953c
BLAKE2b-256 36befc82f31a11dd5e12ef98ef7e9644f27886a96fc17dd1e3d3fdad72093bc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: LbAPLocal-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 22.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fc22ad433b9b34955b9cd89a9e6241ca838d94003dff81108a01fc60c89131f0
MD5 e9393b3dc30fa14fb344694d8c9ec599
BLAKE2b-256 26aceb53e07720bd0db4146b7ce8addc108ad5e576af9a85980e35532efcf4f5

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