Skip to content

Commit f20200c

Browse files
committed
Fix error in docstring example
1 parent 3d99a6e commit f20200c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lessons/python/ivy_diffusion/diffusion.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ class Diffusion:
1414
>>> m.concentration = np.zeros(m.shape)
1515
>>> m.concentration[int(m.shape/2)] = 5
1616
>>> m.concentration
17-
array([ 0.0, 0.0, 0.0, 0.0, 0.0, 5.0, 0.0, 0.0, 0.0,
18-
0.0])
17+
array([ 0.0, 0.0, 0.0, 0.0, 0.0, 5.0, 0.0, 0.0,
18+
0.0, 0.0])
1919
>>> m.time
2020
0.0
2121
>>> m.update()
2222
>>> m.time
2323
1.0
2424
>>> m.concentration
25-
array([ 0.0, 0.0, 0.0, 0.0, 1.2, 2.5, 1.2, 0.0, 0.0,
26-
0.0])
25+
array([ 0.0, 0.0, 0.0, 0.0, 1.2, 2.5, 1.2, 0.0,
26+
0.0, 0.0])
2727
"""
2828

2929
def __init__(self, shape=10, spacing=1.0, diffusivity=1.0):

0 commit comments

Comments
 (0)