Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pandas): Flopy pandas support #1955

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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