Tool to locally run tests for AnalysisProductions
Project description
LbAPLocal
LbAPLocal is the python library for running offline tests for the LHCb AnalysisProductions framework.
:warning: This is currently only available in the LbEnv "unstable" environment :warning:
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
Release history Release notifications | RSS feed
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.4.tar.gz
(297.8 kB
view hashes)
Built Distribution
LbAPLocal-0.0.4-py3-none-any.whl
(24.6 kB
view hashes)
Close
Hashes for LbAPLocal-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2205eee91f5a68ffe8e96e2d2e143cb4d8e3d1048fb9b3669d07b228badd6927 |
|
MD5 | 28ae6ee4bf776c06f17076b20b8900b4 |
|
BLAKE2b-256 | 722c22a2a38175281c346ebcd9e103b0f3e8b58c204427998fc97d98d7861c79 |