new method to return the traceID for given channel names

This commit is contained in:
Sebastian Wehling-Benatelli 2015-07-02 10:32:35 +02:00
parent f77ba344c3
commit a46b0db583

View File

@ -345,6 +345,16 @@ class PickDlg(QDialog):
def getChannelID(self, key):
return self.getPlotWidget().getPlotDict()[int(key)][1]
def getTraceID(self, channels):
plotDict = self.getPlotWidget().getPlotDict()
traceIDs = []
for channel in channels:
channel = channel.upper()
for traceID, channelID in plotDict.iteritems():
if channelID[1].upper().endswith(channel):
traceIDs.append(traceID)
return traceIDs
def getFilterOptions(self, phase):
options = self.filteroptions[phase]
return FilterOptions(**options)