Skip to content

Commit

Permalink
Small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Jun 26, 2023
1 parent 2befb26 commit 748eab0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion advanced/apply_ufunc/example-interp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"tags": []
},
"source": [
"This example will illustrate how to conveniently apply an unvectorized function `func` to xarray objects using `apply_ufunc`. `func` expects 1D numpy arrays and returns a 1D numpy array. Our goal is to coveniently apply this function along a dimension of xarray objects that may or may not wrap dask arrays with a signature.\n",
"This example will illustrate how to conveniently apply an unvectorized function `func` to xarray objects using `apply_ufunc`. `func` expects 1D numpy arrays and returns a 1D numpy array. Our goal is to conveniently apply this function along a dimension of xarray objects that may or may not wrap dask arrays with a signature.\n",
"\n",
"We will illustrate this using [`np.interp`](https://numpy.org/doc/stable/reference/generated/numpy.interp.html): \n",
"\n",
Expand All @@ -43,6 +43,8 @@
"1. Automatically parallelization with dask arrays using `dask=\"parallelized\"`\n",
"1. High-performance vectorization with numba and `vectorize=False`.\n",
"\n",
"It puts together all the concepts covered earlier.\n",
"\n",
"\n",
"```{tip}\n",
"We'll reduce the length of error messages using in this tutorial using `%xmode minimal` See the [ipython documentation](https://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-xmode) for details.\n",
Expand Down

0 comments on commit 748eab0

Please sign in to comment.