Merge branch 'develop' into feature/additional_channel_display

This commit is contained in:
Marcel Paffrath 2018-01-09 09:55:09 +01:00
commit 8badba4a89
2 changed files with 23 additions and 19 deletions

1
pylot/RELEASE-VERSION Normal file
View File

@ -0,0 +1 @@
c393-dirty

View File

@ -1217,6 +1217,7 @@ class PickDlg(QDialog):
self.multicompfig.draw() self.multicompfig.draw()
self.multicompfig.setFocus() self.multicompfig.setFocus()
# setup ui # setup ui
self.setupUi() self.setupUi()
@ -2155,6 +2156,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:
@ -2163,8 +2167,8 @@ 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 = self.getStation()
title = None if filter:
filtoptions = None filtoptions = None
if phase: if phase:
filtoptions = self.getFilterOptions(self.getPhaseID(phase)).parseFilterOptions() filtoptions = self.getFilterOptions(self.getPhaseID(phase)).parseFilterOptions()
@ -2174,7 +2178,6 @@ class PickDlg(QDialog):
# filtoptions = FilterOptionsDialog.getFilterObject() # filtoptions = FilterOptionsDialog.getFilterObject()
# filtoptions = filtoptions.parseFilterOptions() # filtoptions = filtoptions.parseFilterOptions()
title = self.getStation()
if filtoptions is not None: if filtoptions is not None:
data.filter(**filtoptions) data.filter(**filtoptions)
title += '({} filtered'.format(filtoptions['type']) title += '({} filtered'.format(filtoptions['type'])