From f20200c18401625e3cb18b6a52e1b2d80d54e446 Mon Sep 17 00:00:00 2001 From: Mark Piper Date: Sun, 14 May 2023 20:26:01 -0600 Subject: [PATCH] Fix error in docstring example --- lessons/python/ivy_diffusion/diffusion.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lessons/python/ivy_diffusion/diffusion.py b/lessons/python/ivy_diffusion/diffusion.py index 4e5e7fd..35b079b 100644 --- a/lessons/python/ivy_diffusion/diffusion.py +++ b/lessons/python/ivy_diffusion/diffusion.py @@ -14,16 +14,16 @@ class Diffusion: >>> m.concentration = np.zeros(m.shape) >>> m.concentration[int(m.shape/2)] = 5 >>> m.concentration - array([ 0.0, 0.0, 0.0, 0.0, 0.0, 5.0, 0.0, 0.0, 0.0, - 0.0]) + array([ 0.0, 0.0, 0.0, 0.0, 0.0, 5.0, 0.0, 0.0, + 0.0, 0.0]) >>> m.time 0.0 >>> m.update() >>> m.time 1.0 >>> m.concentration - array([ 0.0, 0.0, 0.0, 0.0, 1.2, 2.5, 1.2, 0.0, 0.0, - 0.0]) + array([ 0.0, 0.0, 0.0, 0.0, 1.2, 2.5, 1.2, 0.0, + 0.0, 0.0]) """ def __init__(self, shape=10, spacing=1.0, diffusivity=1.0):