Skip to content
Snippets Groups Projects
Commit 436c5424 authored by Leonardo Martinez Hornak's avatar Leonardo Martinez Hornak
Browse files

AGC error with None values fixed

parent d33dc620
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,6 @@ from matplotlib.animation import FuncAnimation
from types import SimpleNamespace
from enum import Enum
import threading
import random
from threading import Thread
TIME_OUT = 0.5 #Time out used for refreshing the User Interface
......@@ -173,10 +171,11 @@ class Application(tk.Frame):
maxValue = 0
minValue = 0
for p in copyOfChartQueue:
if p > maxValue:
maxValue = p
if p < minValue:
minValue = p
if(type(p) == int):
if p > maxValue:
maxValue = p
if p < minValue:
minValue = p
self.ax.cla()
......@@ -207,12 +206,4 @@ if __name__ == '__main__':
t.daemon = True
t.start()
#Test thread (DELETE)
def work ():
threading.Timer(0.1, work).start()
guiRef.ppgQueue.put(random.randrange(-5,5))
work()
app.mainloop()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment