Skip to content

Commit e677a95

Browse files
committed
changed while loop to for loop in animate_decay.py
1 parent 60ae40d commit e677a95

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/animation/animate_decay.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ def data_gen(t=0):
1212
1313
Generates a decaying sine wave.
1414
"""
15-
count = 0
16-
while count < 1000:
17-
count += 1
15+
for count in range(1000):
1816
t += 0.1
1917
yield t, np.sin(2*np.pi*t) * np.exp(-t/10.)
2018

0 commit comments

Comments
 (0)