[bugfix] teach comparison to cope without pick

This commit is contained in:
Marcel Paffrath 2017-08-21 15:33:00 +02:00
parent 50e7b83812
commit b30ab69ad2

View File

@ -271,6 +271,10 @@ class ComparisonDialog(QDialog):
# _axes.cla() # _axes.cla()
station = self.plotprops['station'] station = self.plotprops['station']
phase = self.plotprops['phase'] phase = self.plotprops['phase']
if not phase in self.data.comparison[station]:
_axes.set_title('No pick found for phase {}.'.format(phase))
self.canvas.draw()
return
pdf = self.data.comparison[station][phase] pdf = self.data.comparison[station][phase]
x, y, std, exp = pdf.axis, pdf.data, pdf.standard_deviation(), \ x, y, std, exp = pdf.axis, pdf.data, pdf.standard_deviation(), \
pdf.expectation() pdf.expectation()