dpest.utils.numlam#

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

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

NUMLAM specifies the maximum number of Marquardt lambda values that PEST will try during each iteration. This function allows you to set NUMLAM to any integer value (e.g., 10, 5, -1). Valid values are: - ≥1 (standard PEST) - <0 (for Parallel PEST or BEOPEST) Zero is not allowed.

Required Arguments:#

  • pst_path (str):

    Path to the .pst PEST control file whose NUMLAM value you wish to update.

  • new_value (int):

    The new value for the NUMLAM parameter.

Returns:#

  • None

Example:#

Set NUMLAM to 10:

from dpest.utils import numlam

pst_file_path = 'PEST_CONTROL.pst'
numlam(pst_file_path, 10)