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
Branches
Tags test_v1
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,6 +171,7 @@ class Application(tk.Frame):
maxValue = 0
minValue = 0
for p in copyOfChartQueue:
if(type(p) == int):
if p > maxValue:
maxValue = p
if p < minValue:
......@@ -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.
Please register or to comment