lstmcpipe.config.tests package#

Submodules#

lstmcpipe.config.tests.test_paths_config module#

lstmcpipe.config.tests.test_paths_config.make_fake_dl0_training(root, dec)#

Create a fake DL0 training tree containing simtel files, as parsed by _search_pointings.

Returns:

dict

Return type:

{particle: [node directory names]}

lstmcpipe.config.tests.test_paths_config.make_fake_source_dl1(root, source_prod_id, dec, node_dirs, missing=())#

Create the DL1 directories of the source production, except the nodes listed in missing

lstmcpipe.config.tests.test_paths_config.make_training_dl1ab_config(tmp_path, dec='dec_2276', prod_id='new_prod', source_prod_id='source_prod')#

Build a PathConfigAllSkyTrainingDL1ab redirected to a fake tree, without running the checker yet

lstmcpipe.config.tests.test_paths_config.redirect_to_fake_tree(cfg, root, dec)#

Point a PathConfigAllSkyTraining-like config to a fake tree instead of /fefs/aswg/data/mc

lstmcpipe.config.tests.test_paths_config.test_PathConfigProd5Trans80()#
lstmcpipe.config.tests.test_paths_config.test_all_train_test_dl1b_checker_keeps_dec_order(tmp_path)#

Declinations without a merged DL1 in the source prod are dropped, the others keep their order

lstmcpipe.config.tests.test_paths_config.test_all_train_test_dl1b_run_checker_is_forwarded()#

run_checker=False must reach the sub-configs, so that no path is looked up on disk

lstmcpipe.config.tests.test_paths_config.test_allsky_testing_irf_output_file()#
lstmcpipe.config.tests.test_paths_config.test_allsky_training_dl1ab_checker_keeps_complete_prod(tmp_path)#

All the nodes exist in the source prod: none of them must be removed

lstmcpipe.config.tests.test_paths_config.test_allsky_training_dl1ab_checker_removes_missing_nodes(tmp_path)#

The node missing from the source prod must be removed, and only that one

lstmcpipe.config.tests.test_paths_config.test_path_config_generate()#
lstmcpipe.config.tests.test_paths_config.test_path_config_generate_fail()#
lstmcpipe.config.tests.test_paths_config.test_path_config_save()#

lstmcpipe.config.tests.test_pipeline_config module#

lstmcpipe.config.tests.test_pipeline_config.test_complete_lstmcpipe_config()#

Test that the file paths are properly set. This only tests a subset of the variables, that are set in the function.

lstmcpipe.config.tests.test_pipeline_config.test_config_valid()#

Test invalid values for all relevant fields individually. This tests values, that are supposed to fail. This does not test if no valid configuration is marked as invalid!

lstmcpipe.config.tests.test_pipeline_config.test_export_env()#

Module contents#