Skip to content

How to modify the loaded model package data with pandas and run_modelflow?? #2245

You must be logged in to vote

hey @GroundwaterSimulationOptimization

Here is something to get you started

If you've modified the wel spd as needed into a new variable new_spd, then adding it to the wel package would be something like this:

wel.stress_period_data = new_spd # beware this is overwriting the attribute but YOLO
wel.write_file(f ='cool_name.wel')

it should work with new_spd being a df or dictionary

if you save the wel pack with a different name don't forget to update the nam file

Cheers

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wpbonelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants