You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add stuff to my control_data section. However, when I try the code below:
pst = pf.build_pst()
#add stuff to pass pestchek
d = {pst.control_data.numcom:1}
for k,v in d.items():
k = v
pst.write(pst_dir+"\\freyberg_mf6_cln.pst")
The new pst file does not have the added "numcom" parameter
The text was updated successfully, but these errors were encountered:
the ControlData class overrides the setters and getters to 0) keep us from having to set all those gory little options as attributes and ii) so that we can type check when someone tries to change one (so you cant pass an str for noptmax, etc). What this means is that you have to assign the values for the control data options by name directly (you cant get a reference to them like in your code because the ControlData instance doesnt have an explicit numcom attribute):
pst.control_data.numcom = 1 does not make it through to the printed .pst. Seems like this might be the same as issue 379? #379
Manually adding a few things got the .pst past pestchek, so all good! Thanks
I want to add stuff to my control_data section. However, when I try the code below:
The new pst file does not have the added "numcom" parameter
The text was updated successfully, but these errors were encountered: