Skip to content

Commit

Permalink
Fix error in docstring example
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed May 15, 2023
1 parent 3d99a6e commit f20200c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lessons/python/ivy_diffusion/diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f20200c

Please sign in to comment.