dpest.utils.phiredstp#

dpest.utils.phiredstp.phiredstp(pst_path, new_value)[source]#

Updates the PHIREDSTP parameter in a PEST control (.pst) file.

PHIREDSTP specifies the relative objective function reduction threshold for optimization termination. This function allows you to set PHIREDSTP to any positive float value.

Required Arguments:#

  • pst_path (str):

    Path to the .pst file to modify

  • new_value (float):

    New value for PHIREDSTP (must be greater than 0.0)

Returns:#

  • None

Example:#

Set PHIREDSTP to 0.01:

from dpest.utils import phiredstp

phiredstp("PEST_CONTROL.pst", 0.01)