176 open event failure

This commit is contained in:
2015-09-03 13:21:46 +02:00
parent 81b95e6a22
commit cc0b1e0a5b
4 changed files with 32 additions and 25 deletions

View File

@@ -1 +1 @@
0.0.0-gbf11
81b9-dirty

View File

@@ -417,7 +417,10 @@ class Data(object):
:param event:
"""
pass
if not self.evtdata:
self.evtdata = event
else:
raise OverwriteError('Acutal event would be overwritten!')
applydata = {'pick': applyPicks,
'arrival': applyArrivals,

View File

@@ -105,10 +105,10 @@ class MPLWidget(FigureCanvas):
for level in noiselevel:
self.getAxes().plot([time_ax[0], time_ax[-1]],
[level, level], '--k')
xlabel = 'seconds since {0}'.format(wfstart)
ylabel = ''
self.updateWidget(xlabel, ylabel, title)
self.setPlotDict(n, (station, channel))
xlabel = 'seconds since {0}'.format(wfstart)
ylabel = ''
self.updateWidget(xlabel, ylabel, title)
self.setXLims([0, wfend - wfstart])
self.setYLims([-0.5, n + 0.5])
if zoomx is not None: