LbAPLocal#
Checks#
Contains functions used to run the checks implemented in LbAPCommon. These are used in conjunction with lb-ap test, and require an ntuple created during a test. Handles the storage of any figures produced when running the checks.
- LbAPLocal.checks.checks_exist(checks_data)[source]#
Return true if any checks have been defined in the config file for this production Otherwise returns false
- LbAPLocal.checks.output_check_results(job_name, checks_data, check_results, checks_out_dir)[source]#
Handle all output from checks This includes both terminal output, and saving figures
- LbAPLocal.checks.perform_checks(production_name, jobs_data, job_name, test_ntuple_path_list, checks_output_dir)[source]#
Run all stages of checks
- LbAPLocal.checks.prepare_checks(production_name, job_name, test_ntuple_path_list, checks_output_dir)[source]#
For a specific job’s checks, run anything required before the checks themselves are executed. This includes: * Parsing & validating the config file * (If necessary) creating the output directory where any figures will be stored
Returns info needed for later stages: * Dictionary containing info on all jobs * Dictionary containing checks configuration * Path to output directory where figures from checks should be stored
Utils#
- LbAPLocal.utils.available_productions()[source]#
Function that finds all production folders with an info.yaml
- LbAPLocal.utils.create_output_dir(production_name, require_cmt)[source]#
Create the directory structure for testing locally
- LbAPLocal.utils.production_to_versions(working_group: str, production_name: str) list [source]#
List the AnalysisProductions tags corresponding to the specified production.