Skip to content

Commit

Permalink
Make metadata list instead dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Yida-Lin committed Jul 23, 2018
1 parent 97e55a7 commit 458e633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paintwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@


class dataThread(QThread):
updateStreamNames = pyqtSignal(dict, int)
updateStreamNames = pyqtSignal(list, int)
sendSignalChunk = pyqtSignal(int, list)

def __init__(self, parent):
super().__init__(parent)
self.chunksPerScreen = 50
self.streams = []
self.metadata = {}
self.chunk_idx = 0

def updateStreams(self):
Expand All @@ -21,6 +20,7 @@ def updateStreams(self):

if self.streams:
self.stream_idx = -1
self.metadata = [None] * len(self.streams)

for k in range(len(self.streams)):
self.metadata[k] = {
Expand Down

0 comments on commit 458e633

Please sign in to comment.