[bugfix] teach comparison to cope without pick
This commit is contained in:
parent
50e7b83812
commit
b30ab69ad2
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user