Skip to content

Commit 7479b30

Browse files
reint-fischerreint-fischer
authored andcommitted
change verbose_progress to hide-output tag
1 parent 09e3dbe commit 7479b30

File tree

4 files changed

+46
-19
lines changed

4 files changed

+46
-19
lines changed

docs/getting_started/tutorial_output.ipynb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,18 @@
109109
{
110110
"cell_type": "code",
111111
"execution_count": null,
112-
"metadata": {},
112+
"metadata": {
113+
"tags": [
114+
"hide-output"
115+
]
116+
},
113117
"outputs": [],
114118
"source": [
115119
"pset.execute(\n",
116120
" parcels.kernels.AdvectionRK4,\n",
117121
" runtime=np.timedelta64(48, \"h\"),\n",
118122
" dt=np.timedelta64(5, \"m\"),\n",
119123
" output_file=output_file,\n",
120-
" verbose_progress=False,\n",
121124
")"
122125
]
123126
},

docs/user_guide/examples/tutorial_Argofloats.ipynb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@
117117
{
118118
"cell_type": "code",
119119
"execution_count": null,
120-
"metadata": {},
120+
"metadata": {
121+
"tags": [
122+
"hide-output"
123+
]
124+
},
121125
"outputs": [],
122126
"source": [
123127
"from datetime import timedelta\n",
@@ -184,7 +188,6 @@
184188
" runtime=timedelta(days=30),\n",
185189
" dt=timedelta(minutes=15),\n",
186190
" output_file=output_file,\n",
187-
" verbose_progress=False,\n",
188191
")"
189192
]
190193
},

docs/user_guide/examples/tutorial_delaystart.ipynb

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@
105105
{
106106
"cell_type": "code",
107107
"execution_count": null,
108-
"metadata": {},
108+
"metadata": {
109+
"tags": [
110+
"hide-output"
111+
]
112+
},
109113
"outputs": [],
110114
"source": [
111115
"output_file = parcels.ParticleFile(\n",
@@ -117,7 +121,6 @@
117121
" runtime=np.timedelta64(24, \"h\"),\n",
118122
" dt=np.timedelta64(5, \"m\"),\n",
119123
" output_file=output_file,\n",
120-
" verbose_progress=False,\n",
121124
")"
122125
]
123126
},
@@ -250,7 +253,11 @@
250253
{
251254
"cell_type": "code",
252255
"execution_count": null,
253-
"metadata": {},
256+
"metadata": {
257+
"tags": [
258+
"hide-output"
259+
]
260+
},
254261
"outputs": [],
255262
"source": [
256263
"output_file = parcels.ParticleFile(\n",
@@ -262,7 +269,6 @@
262269
" runtime=timedelta(hours=24),\n",
263270
" dt=timedelta(minutes=5),\n",
264271
" output_file=output_file,\n",
265-
" verbose_progress=False,\n",
266272
")"
267273
]
268274
},
@@ -355,7 +361,11 @@
355361
{
356362
"cell_type": "code",
357363
"execution_count": null,
358-
"metadata": {},
364+
"metadata": {
365+
"tags": [
366+
"hide-output"
367+
]
368+
},
359369
"outputs": [],
360370
"source": [
361371
"outfilepath = \"delayparticle_nonmatchingtime.zarr\"\n",
@@ -375,7 +385,6 @@
375385
" endtime=ds_fields.time.values[0] + np.timedelta64(4, \"h\"),\n",
376386
" dt=np.timedelta64(1, \"h\"),\n",
377387
" output_file=output_file,\n",
378-
" verbose_progress=False,\n",
379388
")"
380389
]
381390
},

docs/user_guide/examples/tutorial_sampling.ipynb

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@
143143
{
144144
"cell_type": "code",
145145
"execution_count": null,
146-
"metadata": {},
146+
"metadata": {
147+
"tags": [
148+
"hide-output"
149+
]
150+
},
147151
"outputs": [],
148152
"source": [
149153
"pset = parcels.ParticleSet(\n",
@@ -157,7 +161,6 @@
157161
" runtime=timedelta(hours=30),\n",
158162
" dt=timedelta(minutes=5),\n",
159163
" output_file=output_file,\n",
160-
" verbose_progress=False,\n",
161164
")"
162165
]
163166
},
@@ -207,7 +210,11 @@
207210
{
208211
"cell_type": "code",
209212
"execution_count": null,
210-
"metadata": {},
213+
"metadata": {
214+
"tags": [
215+
"hide-output"
216+
]
217+
},
211218
"outputs": [],
212219
"source": [
213220
"def SampleVel_wrong(particles, fieldset):\n",
@@ -222,7 +229,6 @@
222229
" SampleVel_wrong,\n",
223230
" runtime=timedelta(hours=30),\n",
224231
" dt=timedelta(minutes=5),\n",
225-
" verbose_progress=False,\n",
226232
")"
227233
]
228234
},
@@ -237,7 +243,11 @@
237243
{
238244
"cell_type": "code",
239245
"execution_count": null,
240-
"metadata": {},
246+
"metadata": {
247+
"tags": [
248+
"hide-output"
249+
]
250+
},
241251
"outputs": [],
242252
"source": [
243253
"def SampleVel_correct(particles, fieldset):\n",
@@ -252,7 +262,6 @@
252262
" SampleVel_correct,\n",
253263
" runtime=timedelta(hours=30),\n",
254264
" dt=timedelta(minutes=5),\n",
255-
" verbose_progress=False,\n",
256265
")"
257266
]
258267
},
@@ -331,7 +340,11 @@
331340
{
332341
"cell_type": "code",
333342
"execution_count": null,
334-
"metadata": {},
343+
"metadata": {
344+
"tags": [
345+
"hide-output"
346+
]
347+
},
335348
"outputs": [],
336349
"source": [
337350
"output_file = parcels.ParticleFile(\"writeonce.zarr\", outputdt=timedelta(hours=1))\n",
@@ -341,7 +354,6 @@
341354
" runtime=timedelta(hours=24),\n",
342355
" dt=timedelta(minutes=5),\n",
343356
" output_file=output_file,\n",
344-
" verbose_progress=False,\n",
345357
")"
346358
]
347359
},
@@ -358,7 +370,7 @@
358370
"metadata": {},
359371
"outputs": [],
360372
"source": [
361-
"ds_particles_once = xr.open_zarr(\"writeonce.zarr\", decode_times=False)\n",
373+
"ds_particles_once = xr.open_zarr(\"writeonce.zarr\")\n",
362374
"\n",
363375
"plt.figure()\n",
364376
"ax = plt.axes()\n",

0 commit comments

Comments
 (0)