[update] changed plot/filter behavior for 3comp window
This commit is contained in:
parent
fb4753ca83
commit
549700bf7a
1
pylot/RELEASE-VERSION
Normal file
1
pylot/RELEASE-VERSION
Normal file
@ -0,0 +1 @@
|
|||||||
|
c393-dirty
|
@ -1203,6 +1203,7 @@ class PickDlg(QDialog):
|
|||||||
self.multicompfig.draw()
|
self.multicompfig.draw()
|
||||||
self.multicompfig.setFocus()
|
self.multicompfig.setFocus()
|
||||||
|
|
||||||
|
|
||||||
# setup ui
|
# setup ui
|
||||||
self.setupUi()
|
self.setupUi()
|
||||||
|
|
||||||
@ -2137,6 +2138,9 @@ class PickDlg(QDialog):
|
|||||||
return not self.pick_block
|
return not self.pick_block
|
||||||
|
|
||||||
def filterWFData(self, phase=None):
|
def filterWFData(self, phase=None):
|
||||||
|
self.plotWFData(phase=phase, filter=True)
|
||||||
|
|
||||||
|
def plotWFData(self, phase=None, filter=False):
|
||||||
if self.pick_block:
|
if self.pick_block:
|
||||||
return
|
return
|
||||||
if not phase:
|
if not phase:
|
||||||
@ -2145,26 +2149,25 @@ class PickDlg(QDialog):
|
|||||||
self.cur_ylim = self.multicompfig.axes[0].get_ylim()
|
self.cur_ylim = self.multicompfig.axes[0].get_ylim()
|
||||||
#self.multicompfig.updateCurrentLimits()
|
#self.multicompfig.updateCurrentLimits()
|
||||||
data = self.getWFData().copy()
|
data = self.getWFData().copy()
|
||||||
old_title = self.multicompfig.axes[0].get_title()
|
|
||||||
title = None
|
|
||||||
filtoptions = None
|
|
||||||
if phase:
|
|
||||||
filtoptions = self.getFilterOptions(self.getPhaseID(phase)).parseFilterOptions()
|
|
||||||
|
|
||||||
# if self.filterActionP.isChecked() or self.filterActionS.isChecked():
|
|
||||||
# if not phase:
|
|
||||||
# filtoptions = FilterOptionsDialog.getFilterObject()
|
|
||||||
# filtoptions = filtoptions.parseFilterOptions()
|
|
||||||
|
|
||||||
title = self.getStation()
|
title = self.getStation()
|
||||||
if filtoptions is not None:
|
if filter:
|
||||||
data.filter(**filtoptions)
|
filtoptions = None
|
||||||
title += '({} filtered'.format(filtoptions['type'])
|
if phase:
|
||||||
for key, value in filtoptions.items():
|
filtoptions = self.getFilterOptions(self.getPhaseID(phase)).parseFilterOptions()
|
||||||
if key == 'type':
|
|
||||||
continue
|
# if self.filterActionP.isChecked() or self.filterActionS.isChecked():
|
||||||
title += ' {}: {},'.format(key, value)
|
# if not phase:
|
||||||
title += ')'
|
# filtoptions = FilterOptionsDialog.getFilterObject()
|
||||||
|
# filtoptions = filtoptions.parseFilterOptions()
|
||||||
|
|
||||||
|
if filtoptions is not None:
|
||||||
|
data.filter(**filtoptions)
|
||||||
|
title += '({} filtered'.format(filtoptions['type'])
|
||||||
|
for key, value in filtoptions.items():
|
||||||
|
if key == 'type':
|
||||||
|
continue
|
||||||
|
title += ' {}: {},'.format(key, value)
|
||||||
|
title += ')'
|
||||||
self.multicompfig.plotWFData(wfdata=data, title=title,
|
self.multicompfig.plotWFData(wfdata=data, title=title,
|
||||||
zoomx=self.getXLims(),
|
zoomx=self.getXLims(),
|
||||||
zoomy=self.getYLims())
|
zoomy=self.getYLims())
|
||||||
|
Loading…
Reference in New Issue
Block a user