Files
python-xarray/0002-DOC-Skip-examples-using-unpackaged-dependencies.patch
T
Elliott Sales de Andrade 01acc30df2 Update to latest version.
2020-07-12 20:46:32 -04:00

34 lines
920 B
Diff

From 909193458554ebf2f0fb42a7beb550a20ad27735 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Fri, 15 Mar 2019 22:48:25 -0400
Subject: [PATCH 2/3] DOC: Skip examples using unpackaged dependencies.
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
doc/io.rst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/doc/io.rst b/doc/io.rst
index 4aac5e0b..5f8d3871 100644
--- a/doc/io.rst
+++ b/doc/io.rst
@@ -504,6 +504,7 @@ installed xarray can convert a ``DataArray`` into a ``Cube`` using
:py:meth:`DataArray.to_iris`:
.. ipython:: python
+ :verbatim:
da = xr.DataArray(
np.random.rand(4, 5),
@@ -518,6 +519,7 @@ Conversely, we can create a new ``DataArray`` object from a ``Cube`` using
:py:meth:`DataArray.from_iris`:
.. ipython:: python
+ :verbatim:
da_cube = xr.DataArray.from_iris(cube)
da_cube
--
2.25.4