Blame 0002-DOC-Skip-examples-using-unpackaged-dependencies.patch
|
|
d06712b |
From 90f116ffbf6eb403d4ddd44e6b9bafddced99419 Mon Sep 17 00:00:00 2001
|
|
|
45d03f9 |
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
|
45d03f9 |
Date: Fri, 15 Mar 2019 22:48:25 -0400
|
|
|
45d03f9 |
Subject: [PATCH 2/4] DOC: Skip examples using unpackaged dependencies.
|
|
|
45d03f9 |
|
|
|
45d03f9 |
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
|
45d03f9 |
---
|
|
|
45d03f9 |
doc/io.rst | 2 ++
|
|
|
45d03f9 |
1 file changed, 2 insertions(+)
|
|
|
45d03f9 |
|
|
|
45d03f9 |
diff --git a/doc/io.rst b/doc/io.rst
|
|
|
d06712b |
index 85cb73a0..60990627 100644
|
|
|
45d03f9 |
--- a/doc/io.rst
|
|
|
45d03f9 |
+++ b/doc/io.rst
|
|
|
d06712b |
@@ -373,6 +373,7 @@ installed xarray can convert a ``DataArray`` into a ``Cube`` using
|
|
|
45d03f9 |
:py:meth:`~xarray.DataArray.to_iris`:
|
|
|
45d03f9 |
|
|
|
45d03f9 |
.. ipython:: python
|
|
|
45d03f9 |
+ :verbatim:
|
|
|
45d03f9 |
|
|
|
45d03f9 |
da = xr.DataArray(np.random.rand(4, 5), dims=['x', 'y'],
|
|
|
45d03f9 |
coords=dict(x=[10, 20, 30, 40],
|
|
|
d06712b |
@@ -385,6 +386,7 @@ Conversely, we can create a new ``DataArray`` object from a ``Cube`` using
|
|
|
45d03f9 |
:py:meth:`~xarray.DataArray.from_iris`:
|
|
|
45d03f9 |
|
|
|
45d03f9 |
.. ipython:: python
|
|
|
45d03f9 |
+ :verbatim:
|
|
|
45d03f9 |
|
|
|
45d03f9 |
da_cube = xr.DataArray.from_iris(cube)
|
|
|
45d03f9 |
da_cube
|
|
|
45d03f9 |
--
|
|
|
d06712b |
2.21.0
|
|
|
45d03f9 |
|