Skip to content

Updated some examples [MEP12] #6486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
changed while loop to for loop in animate_decay.py
  • Loading branch information
adasilva committed Jun 1, 2016
commit 9619f22cc2a04f6a0864cfaba16b764d6abe8dd9
4 changes: 1 addition & 3 deletions examples/animation/animate_decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ def data_gen(t=0):

Generates a decaying sine wave.
"""
count = 0
while count < 1000:
count += 1
for count in range(1000):
t += 0.1
yield t, np.sin(2*np.pi*t) * np.exp(-t/10.)

Expand Down