perturbopy.test_utils.run_test.env_utils.perturbo_scratch_dir_config
- perturbopy.test_utils.run_test.env_utils.perturbo_scratch_dir_config(source_folder, perturbo_inputs_dir_path, test_name, config_machine, test_case='perturbo', rm_preexist_dir=True)
Check if the PERT_SCRATCH variable is written in the config_machine file. If not - use default location “/PERT_SCRATCH”. After it, this programm make the copy from folder with tests from either epr_computation or inputs folder.
- Parameters:
source_folder (str) – path of source directory
perturbo_inputs_dir_path (str) – folder with all input files for the test
test_name (str) – name of test
config_machine (dict) – dictionary with computational information, which we’ll use in this set of computations.
test_case (str) – define what type of the test we run - for perturbo testing or for the qe2pert testing.
rm_preexist_dir (bool) – whether to remove dir if it preexists
- Returns:
perturbo_scratch_dir – string containing the path to generate dir named tmp_test_name in which outputs for test_name will be generated
- Return type:
str