|
data = get_sample(stream,pa) |
When I start running it, I get the following error and the animation stops with 1st image.
.../Live-Specgram/run_specgram.py", line 58, in update_fig
data = get_sample(stream,pa)
NameError: name 'stream' is not defined
I was able to animate fine, after I declared variables global in the main definition.
def main():
global stream
global pa
global im
Live-Specgram/run_specgram.py
Line 58 in 9311882
When I start running it, I get the following error and the animation stops with 1st image.
I was able to animate fine, after I declared variables
globalin the main definition.