use similar method names for similar types of methods (e.g. xWFData for all methods connected to waveform data)
This commit is contained in:
parent
35c184ede7
commit
7dd1519f83
@ -357,7 +357,7 @@ class MainWindow(QMainWindow):
|
||||
self.plotWaveformData()
|
||||
|
||||
def plotWaveformData(self):
|
||||
self.getData().plotData(self.getDataWidget())
|
||||
self.getData().plotWFData(self.getDataWidget())
|
||||
|
||||
def filterWaveformData(self):
|
||||
if self.getData():
|
||||
@ -378,6 +378,8 @@ class MainWindow(QMainWindow):
|
||||
kwargs['type'] = self.getFilterOptions().getFilterType()
|
||||
kwargs['corners'] = self.getFilterOptions().getOrder()
|
||||
self.getData().filter(kwargs)
|
||||
self.getData().filterWFData(kwargs)
|
||||
self.getData().resetWFData()
|
||||
|
||||
def adjustFilterOptions(self):
|
||||
filteroptions = None
|
||||
|
@ -95,7 +95,7 @@ class Data(object):
|
||||
raise KeyError('''{0} export format
|
||||
not implemented: {1}'''.format(evtformat, e))
|
||||
|
||||
def plotData(self, widget):
|
||||
def plotWFData(self, widget):
|
||||
wfst = self.getWFData().select(component=self.getComp())
|
||||
for n, trace in enumerate(wfst):
|
||||
stime = trace.stats.starttime - self.getCutTimes()[0]
|
||||
@ -121,7 +121,7 @@ class Data(object):
|
||||
except:
|
||||
return 'smi:bug/pylot/1234'
|
||||
|
||||
def filter(self, kwargs):
|
||||
def filterWFData(self, kwargs):
|
||||
self.getWFData().filter(**kwargs)
|
||||
self.dirty = True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user