imod.mf6.Modflow6Simulation.from_file#

static Modflow6Simulation.from_file(toml_path)[source]#

Load Modflow6Simulation, previously dumped to TOML file with imod.mf6.Modflow6Simulation.dump() from a TOML file.

Parameters:

toml_path (str or Path) – Path to TOML file containing Modflow6Simulation data.

Returns:

Modflow6Simulation object with models and packages loaded from

Return type:

Modflow6Simulation

Examples

Dump simulation to directory:

>>> mf6_sim.dump("path/to/directory")

You can load the dumped simulation back with:

>>> loaded_sim = Modflow6Simulation.from_file("path/to/directory/simulation_name.toml")