iwfm.diagnostics.setup_pest_run¶
- iwfm.diagnostics.setup_pest_run(reference_dir, output_dir, pst_file=None, run_name='c2vsim_llm', copy_model=True, verbose=False)[source]¶
Create a clean PEST run folder from a reference run directory.
Copies essential files from reference_dir to output_dir: - Template files (.tpl) - Instruction files (.ins) - Observation data files (.smp) - Run scripts (.sh) - Control input files (.in) - Model directory (if copy_model=True) - Places the new .pst file if provided
- Parameters:
reference_dir (str) – Path to reference PEST run (e.g., c2vsimcg_pypest_iterate).
output_dir (str) – Path for new PEST run folder. Created if it doesn’t exist.
pst_file (str, optional) – Path to .pst file to place in the new folder. If None, no .pst is copied (must be generated separately).
run_name (str) – Base name for PEST files (used for run script).
copy_model (bool) – If True, copy the model/ subdirectory.
verbose (bool) – Print progress.
- Returns:
- {‘output_dir’: str, ‘pst_path’: str or None,
’files_copied’: int, ‘model_copied’: bool}.
- Return type: