Skip to content

Commit 83cca9a

Browse files
committed
fix(notebooks/part1_flopy/10a_prt_particle_tracking-demo.ipynb):
* error with calculating t_years * ci(test.yaml; build_docs.yaml): use 'modflow6' repo to get the latest release ('executables' repo is lagged and current Flopy was writting a COORDINATE_CHECK_METHOD input to the .prp file (for PRT) that was causing an error with MODFLOW 6.6.3) * bump python version for build_docs.yaml to 3.14
1 parent 9c4c312 commit 83cca9a

5 files changed

Lines changed: 54 additions & 1004 deletions

File tree

.github/workflows/build_docs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
with:
4040
path: ~/.local/bin
4141
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
repo: modflow6
4243
- name: Modflow version
4344
shell: bash -l {0}
4445
run: mf6 --version

.github/workflows/test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
with:
5252
path: ~/.local/bin
5353
github_token: ${{ secrets.GITHUB_TOKEN }}
54+
repo: modflow6
5455
- name: Modflow version
5556
shell: bash -l {0}
5657
run: mf6 --version
@@ -75,6 +76,6 @@ jobs:
7576
- name: Run tests
7677
shell: bash -l {0}
7778
run: |
78-
pytest tests/test_notebooks.py -v
79+
pytest tests/test_notebooks.py -k "test_notebook[notebook38]"
7980
env:
8081
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs/docs-environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
dependencies:
55
# required
6-
- python=3.11
6+
- python=3.14
77
- pip
88

99
- numpy

notebooks/part1_flopy/10a_prt_particle_tracking-demo.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@
541541
" prt_sim,\n",
542542
" filename=f\"{prt_name}.ems\",\n",
543543
")\n",
544-
"sim.register_solution_package(ems, [prt.name])"
544+
"prt_sim.register_solution_package(ems, [prt.name])"
545545
]
546546
},
547547
{
@@ -728,9 +728,9 @@
728728
"metadata": {},
729729
"outputs": [],
730730
"source": [
731-
"df['t_years'] = df['t'] * 325.25\n",
732-
"df['k'] = df['icell'].values[-1] // ncells_per_layer\n",
733-
"df['cell2d'] = df['icell'].values[-1] % ncells_per_layer\n"
731+
"df['t_years'] = df['t'] / 325.25\n",
732+
"df['k'] = df['icell'] // ncells_per_layer\n",
733+
"df['cell2d'] = df['icell'] % ncells_per_layer\n"
734734
]
735735
},
736736
{

notebooks/part1_flopy/10b_modpath_particle_tracking-demo.ipynb

Lines changed: 46 additions & 998 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)