8000 Expect exception raising · xarray-contrib/xarray-tutorial@62ddb3b · GitHub
[go: up one dir, main page]

Skip to content

Commit 62ddb3b

Browse files
committed
Expect exception raising
1 parent 2e100c4 commit 62ddb3b

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

advanced/apply_ufunc/automatic-vectorizing-numpy.ipynb

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"cell_type": "markdown",
55
"id": "6849dcdc-3484-4f41-8b23-51613d36812f",
66
"metadata": {
7-
"tags": [],
8-
"user_expressions": []
7+
"tags": []
98
},
109
"source": [
1110
"# Automatic Vectorization"
@@ -15,8 +14,7 @@
1514
"cell_type": "markdown",
1615
"id": "afc56d28-6e55-4967-b27d-28e2cc539cc7",
1716
"metadata": {
18-
"tags": [],
19-
"user_expressions": []
17+
"tags": []
2018
},
2119
"source": [
2220
"Previously we looked at applying functions on numpy arrays, and the concept of core dimensions.\n",
@@ -48,7 +46,7 @@
4846
"1. Understand vectorization\n",
4947
"1. Learn how to apply such functions without loops using `apply_ufunc` by providing the `vectorize` keyword argument.\n",
5048
"\n",
51-
"### Core dimensions and looping\n",
49+
"## Core dimensions and looping\n",
5250
"\n",
5351
"Let's say we want to\n",
5452
"interpolate an array with two dimensions (`space`, `time`) over the `time` dimension, we might \n",
@@ -125,8 +123,7 @@
125123
"cell_type": "markdown",
126124
"id": "81356724-6c1a-4d4a-9a32-bb906a9419b2",
127125
"metadata": {
128-
"tags": [],
129-
"user_expressions": []
126+
"tags": []
130127
},
131128
"source": [
132129
"## Review\n",
@@ -163,8 +160,7 @@
163160
"cell_type": "markdown",
164161
"id": "e3382658-14e1-4842-a618-ce7a27948c31",
165162
"metadata": {
166-
"tags": [],
167-
"user_expressions": []
163+
"tags": []
168164
},
169165
"source": [
170166
"## Try nD input\n",
@@ -177,7 +173,9 @@
177173
"execution_count": null,
178174
"id": "1476bcce-cc7b-4252-90dd-f45502dffb09",
179175
"metadata": {
180-
"tags": []
176+
"tags": [
177+
"raises-exception"
178+
]
181179
},
182180
"outputs": [],
183181
"source": [
@@ -198,8 +196,7 @@
198196
"cell_type": "markdown",
199197
"id": "1d1da9c2-a634-4920-890c-74d9bec9eab9",
200198
"metadata": {
201-
"tags": [],
202-
"user_expressions": []
199+
"tags": []
203200
},
204201
"source": [
205202
"We will use a \"wrapper\" function `interp1d_np` to examine what gets passed to `numpy.interp`"
@@ -210,7 +207,9 @@
210207
"execution_count": null,
211208
"id": "fa306dcf-eec3-425c-b278-42d15bbc0e4f",
212209
"metadata": {
213-
"tags": []
210+
"tags": [
211+
"raises-exception"
212+
]
214213
},
215214
"outputs": [],
216215
"source": [

0 commit comments

Comments
 (0)
0