Replies: 3 comments
-
Hi @idalh Python functions are written to forward_run.py and then the pst file should have this file path under *model command line Not sure what is not by default in your case. |
Beta Was this translation helpful? Give feedback.
-
As @p-ortega suggests, pstfrom by default sets the control file model command as "forward_run.py". Are you changing this somewhere? |
Beta Was this translation helpful? Give feedback.
-
Hi!
It overwrites any python functions you might have added. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am trying to add python function calls to PEST but currently not succeeding getting the call written to the .pst file. The python functions are added with:
pf.add_py_function("helpers.py",
"extract_hds_arrays_and_list_df(ws='.')",
is_pre_cmd=False)
But when writing the pst file it looks like this (and does not include any python calls):
PST file:
pcf version=2
pestmode estimation
noptmax -1
svdmode 1
maxsing 10000000
eigthresh 1e-06
eigwrite 1
ies_par_en prior.csv
model.pargp_data.csv
model.par_data.csv
model.obs_data.csv
runmodel.bat
model.tplfile_data.csv
model.insfile_data.csv
Extra info
print(pf.pre_py_cmds)
print(pf.post_py_cmds)
Returns the function calls.
It seems like I am missing something here in the writing of the pst file, but not sure what?
Hope somebody can help!
Beta Was this translation helpful? Give feedback.
All reactions