use similar method names for similar types of methods (e.g. xWFData for all methods connected to waveform data)

This commit is contained in:
Sebastian Wehling-Benatelli 2015-02-20 08:35:26 +01:00
parent 35c184ede7
commit 7dd1519f83
2 changed files with 5 additions and 3 deletions

View File

@ -357,7 +357,7 @@ class MainWindow(QMainWindow):
self.plotWaveformData() self.plotWaveformData()
def plotWaveformData(self): def plotWaveformData(self):
self.getData().plotData(self.getDataWidget()) self.getData().plotWFData(self.getDataWidget())
def filterWaveformData(self): def filterWaveformData(self):
if self.getData(): if self.getData():
@ -378,6 +378,8 @@ class MainWindow(QMainWindow):
kwargs['type'] = self.getFilterOptions().getFilterType() kwargs['type'] = self.getFilterOptions().getFilterType()
kwargs['corners'] = self.getFilterOptions().getOrder() kwargs['corners'] = self.getFilterOptions().getOrder()
self.getData().filter(kwargs) self.getData().filter(kwargs)
self.getData().filterWFData(kwargs)
self.getData().resetWFData()
def adjustFilterOptions(self): def adjustFilterOptions(self):
filteroptions = None filteroptions = None

View File

@ -95,7 +95,7 @@ class Data(object):
raise KeyError('''{0} export format raise KeyError('''{0} export format
not implemented: {1}'''.format(evtformat, e)) not implemented: {1}'''.format(evtformat, e))
def plotData(self, widget): def plotWFData(self, widget):
wfst = self.getWFData().select(component=self.getComp()) wfst = self.getWFData().select(component=self.getComp())
for n, trace in enumerate(wfst): for n, trace in enumerate(wfst):
stime = trace.stats.starttime - self.getCutTimes()[0] stime = trace.stats.starttime - self.getCutTimes()[0]
@ -121,7 +121,7 @@ class Data(object):
except: except:
return 'smi:bug/pylot/1234' return 'smi:bug/pylot/1234'
def filter(self, kwargs): def filterWFData(self, kwargs):
self.getWFData().filter(**kwargs) self.getWFData().filter(**kwargs)
self.dirty = True self.dirty = True