dpest.utils.parg_inctyp#
- dpest.utils.parg_inctyp.parg_inctyp(pst_path, updates)[source]#
Updates INCTYP values for one or more parameter groups in a PEST control (.pst) file.
The
INCTYPfield specifies the increment type used by PEST for derivative calculations in the* parameter groupssection. Typical values arerelativeandabsolute. This function modifies the* parameter groupssection of an existing.pstfile in place.Required Arguments:#
- pst_path (str):
Path to the
.pstPEST control file to modify.
- updates (dict):
Dictionary mapping parameter group names to new
INCTYPvalues.Example:
{ "PART_SEED": "relative", "SEED_COMP": "absolute" }
Returns:#
None
The function updates the
* parameter groupssection in place.Examples:#
Update INCTYP for two parameter groups:
from dpest.utils import parg_inctyp parg_inctyp( pst_path = "A-1_input/PEST_CONTROL.pst", updates = { "PART_SEED": "relative", "SEED_COMP": "relative" } )
Set one parameter group to absolute increments:
from dpest.utils import parg_inctyp parg_inctyp( pst_path = "PEST_CONTROL.pst", updates = { "SEED_COMP": "absolute" } )