Skip to content

Commit a29c32e

Browse files
reint fischerreint fischer
authored andcommitted
add sampling tutorial to pytest workflow
1 parent 842c572 commit a29c32e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/examples/tutorial_sampling.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@
9393
"npart = 10 # number of particles to be released\n",
9494
"lon = 32 * np.ones(npart)\n",
9595
"lat = np.linspace(-32.5, -30.5, npart, dtype=np.float32)\n",
96-
"time = np.repeat(ds.time.values[0], npart) # release all particles at the start time of the fieldset\n",
96+
"time = np.repeat(\n",
97+
" ds.time.values[0], npart\n",
98+
") # release all particles at the start time of the fieldset\n",
9799
"depth = np.repeat(ds.depth.values[0], npart)\n",
98100
"\n",
99101
"# Plot temperature field and initial particle locations\n",

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pytest-cov = "*"
5858

5959
[feature.test.tasks]
6060
tests = "pytest"
61-
tests-notebooks = "pytest --nbval-lax -k 'argo' docs/examples"
61+
tests-notebooks = "pytest --nbval-lax -k 'argo sampling' docs/examples"
6262

6363

6464
[feature.notebooks.dependencies]

0 commit comments

Comments
 (0)