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()
|
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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user