dpest.utils.phiredswh#
- dpest.utils.phiredswh.phiredswh(pst_path, new_value)[source]#
Updates the PHIREDSWH parameter in a PEST control (.pst) file.
PHIREDSWH sets the objective function change threshold for switching to central derivatives. This function allows you to set PHIREDSWH to any float value between 0.0 and 1.0.
Required Arguments:#
- pst_path (str):
Path to the .pst file to modify
- new_value (float):
New value for PHIREDSWH (must be between 0.0 and 1.0)
Returns:#
None
Example:#
Set PHIREDSWH to 0.1:
from dpest.utils import phiredswh phiredswh("PEST_CONTROL.pst", 0.1)