Skip to content

Commit

Permalink
feat(pandas support) (#1955)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrp authored Oct 4, 2023
1 parent 1eddf86 commit f82fdf6
Show file tree
Hide file tree
Showing 45 changed files with 3,453 additions and 370 deletions.
22 changes: 17 additions & 5 deletions .docs/Notebooks/modpath7_structured_transient_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,25 @@
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.14.5
# jupytext_version: 1.14.4
# kernelspec:
# display_name: Python 3
# display_name: Python 3 (ipykernel)
# language: python
# name: python3
# language_info:
# codemirror_mode:
# name: ipython
# version: 3
# file_extension: .py
# mimetype: text/x-python
# name: python
# nbconvert_exporter: python
# pygments_lexer: ipython3
# version: 3.9.12
# metadata:
# section: modpath
# authors:
# - name: Wes Bonelli
# - name: Wes Bonelli
# section: modpath
# ---

# # Using MODPATH 7 with structured grids (transient example)
Expand Down Expand Up @@ -228,7 +238,7 @@ def no_flow(w):
[drain[0], drain[1], i + drain[2][0], 322.5, 100000.0, 6]
for i in range(drain[2][1] - drain[2][0])
]
drn = flopy.mf6.modflow.mfgwfdrn.ModflowGwfdrn(gwf, stress_period_data={0: dd})
drn = flopy.mf6.modflow.mfgwfdrn.ModflowGwfdrn(gwf, auxiliary=["IFACE"], stress_period_data={0: dd})

# output control
headfile = f"{sim_name}.hds"
Expand Down Expand Up @@ -400,3 +410,5 @@ def add_legend(ax):
temp_dir.cleanup()
except:
pass


2 changes: 1 addition & 1 deletion autotest/regression/test_mf6.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ def test_np002(function_tmpdir, example_data_path):
md2 = sim2.get_model()
ghb2 = md2.get_package("ghb")
spd2 = ghb2.stress_period_data.get_data(1)
assert spd2 == []
assert len(spd2) == 0

# test paths
sim_path_test = Path(ws) / "sim_path"
Expand Down
Loading

0 comments on commit f82fdf6

Please sign in to comment.