dpest.utils.relparstp#
- dpest.utils.relparstp.relparstp(pst_path, new_value)[source]#
Updates the RELPARSTP parameter in a PEST control (.pst) file.
RELPARSTP specifies the maximum relative parameter change threshold for optimization termination. This function allows you to set RELPARSTP to any positive float value.
Required Arguments:#
- pst_path (str):
Path to the .pst file to modify
- new_value (float):
New value for RELPARSTP (must be > 0.0)
Returns:#
None
Example:#
Set RELPARSTP to 0.01:
from dpest.utils import relparstp relparstp("PEST_CONTROL.pst", 0.01)