dpest.utils.rstfle#
- dpest.utils.rstfle.rstfle(pst_path, new_value)[source]#
Updates the RSTFLE parameter in a PEST control (.pst) file.
The RSTFLE parameter instructs PEST whether to write restart data. It should be set to “restart” or “norestart”. This function allows you to set RSTFLE to either value.
Required Arguments:#
- pst_path (str):
Path to the
.pstPEST control file whose RSTFLE value you wish to update.
- new_value (str):
The new value for the RSTFLE parameter (“restart” or “norestart”).
Returns:#
None
Examples:#
Set RSTFLE to “restart”:
from dpest.utils import rstfle pst_file_path = 'PEST_CONTROL.pst' rstfle(pst_file_path, "restart")
Set RSTFLE to “norestart”:
from dpest.utils import rstfle pst_file_path = './ENTRY1/PEST_CONTROL.pst' rstfle(pst_file_path, "norestart")