Skip to content
Discussion options

You must be logged in to vote

This is intended. set_sim_path calls set_all_data_internal() first, in both 3.10 and 3.11. You can skip it like this.

import os
import flopy

sim = flopy.mf6.MFSimulation.load(sim_ws=original_sim_ws)

os.makedirs(new_sim_ws, exist_ok=True)
sim.simulation_data.mfpath.set_sim_path(new_sim_ws, True)
sim.simulation_data.mfpath.copy_files()
sim.write_simulation()

I tested it and the OPEN/CLOSE files kept their names. Only files the model uses get copied, so your PEST files stay behind.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wpbonelli
Comment options

@javgs-bd
Comment options

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
3 participants