Merge branch 'github-master'

This commit is contained in:
Marcel Paffrath 2017-09-25 15:50:38 +02:00
commit 710ea57503
3 changed files with 31 additions and 16 deletions

View File

@ -1633,7 +1633,7 @@ class MainWindow(QMainWindow):
if self.pg: if self.pg:
self.finish_pg_plot() self.finish_pg_plot()
else: else:
self._max_xlims = self.dataPlot.getXLims() self._max_xlims = self.dataPlot.getXLims(self.dataPlot.axes[0])
plotWidget = self.getPlotWidget() plotWidget = self.getPlotWidget()
plotDict = plotWidget.getPlotDict() plotDict = plotWidget.getPlotDict()
pos = plotDict.keys() pos = plotDict.keys()
@ -1707,7 +1707,7 @@ class MainWindow(QMainWindow):
self.dataPlot.plotWidget.hideAxis('bottom') self.dataPlot.plotWidget.hideAxis('bottom')
self.dataPlot.plotWidget.hideAxis('left') self.dataPlot.plotWidget.hideAxis('left')
else: else:
self.dataPlot.getAxes().cla() self.dataPlot.axes[0].cla()
self.loadlocationaction.setEnabled(False) self.loadlocationaction.setEnabled(False)
self.auto_tune.setEnabled(False) self.auto_tune.setEnabled(False)
self.auto_pick.setEnabled(False) self.auto_pick.setEnabled(False)
@ -2314,7 +2314,7 @@ class MainWindow(QMainWindow):
if self.pg: if self.pg:
pw = self.getPlotWidget().plotWidget pw = self.getPlotWidget().plotWidget
else: else:
ax = self.getPlotWidget().axes ax = self.getPlotWidget().axes[0]
ylims = np.array([-.5, +.5]) + plotID ylims = np.array([-.5, +.5]) + plotID
stat_picks = self.getPicks(type=picktype)[station] stat_picks = self.getPicks(type=picktype)[station]
@ -2572,7 +2572,7 @@ class MainWindow(QMainWindow):
lon = event.origins[0].longitude lon = event.origins[0].longitude
self.array_map.eventLoc = (lat, lon) self.array_map.eventLoc = (lat, lon)
if self.get_current_event(): if self.get_current_event():
self.array_map.refresh_drawings(self.get_current_event().getPicks()) self.array_map.refresh_drawings(self.get_current_event().getAutopicks())
self._eventChanged[1] = False self._eventChanged[1] = False
def init_event_table(self, tabindex=2): def init_event_table(self, tabindex=2):

View File

@ -66,20 +66,34 @@ PyLoT has been tested on Mac OSX (10.11), Debian Linux 8 and on Windows 10.
#### Features: #### Features:
- event organisation in project files and waveform visualisation - centralize all functionalities of PyLoT and control them from within the main GUI
- consistent manual phase picking through predefined SNR dependant zoom level - handling multiple events inside GUI with project files (save and load work progress)
- consistent automatic phase picking routines using Higher Order Statistics, AIC and Autoregression - GUI based adjustments of pick parameters and I/O
- interactive tuning of auto-pick parameters - interactive tuning of parameters from within the GUI
- uniform uncertainty estimation from waveform's properties for automatic and manual picks - call automatic picking algorithm from within the GUI
- pdf representation and comparison of picks taking the uncertainty intrinsically into account - comparison of automatic with manual picks for multiple events using clear differentiation of manual picks into 'tune' and 'test-set' (beta)
- Richter and moment magnitude estimation - manual picking of different (user defined) phase types
- location determination with external installation of [NonLinLoc](http://alomax.free.fr/nlloc/index.html) - phase onset estimation with ObsPy TauPy
- interactive zoom/scale functionalities in all plots (mousewheel, pan, pan-zoom)
- array map to visualize stations and control onsets (beta feature, switch to manual picks not implemented)
#### Known issues: ##### Platform support:
- Python 3 support
- Windows support
- Sometimes an error might occur when using Qt ##### Performance:
- multiprocessing for automatic picking and restitution of multiple stations
- use pyqtgraph library for better performance on main waveform plot
We hope to solve these with the next release. ##### Visualization:
- pick uncertainty (quality classes) visualization with gradients
- pick color unification for all plots
- new icons and stylesheets
#### Known Issues:
- some Qt related errors might occur at runtime
- filter toggle not working in pickDlg
- PyLoT data structure requires at least three parent directories for waveform data directory
## Staff ## Staff

View File

@ -624,6 +624,7 @@ class PylotCanvas(FigureCanvas):
# initialize super class # initialize super class
super(PylotCanvas, self).__init__(self.figure) super(PylotCanvas, self).__init__(self.figure)
self.setParent(parent) self.setParent(parent)
self.orig_parent = parent
if multicursor: if multicursor:
# add a cursor for station selection # add a cursor for station selection
@ -917,7 +918,7 @@ class PylotCanvas(FigureCanvas):
nsc.sort() nsc.sort()
nsc.reverse() nsc.reverse()
style = self.parent()._style style = self.orig_parent._style
linecolor = style['linecolor']['rgba_mpl'] linecolor = style['linecolor']['rgba_mpl']
for n, (network, station, channel) in enumerate(nsc): for n, (network, station, channel) in enumerate(nsc):