[bugfix] plotting map without picks lead to an exception
This commit is contained in:
parent
74c68d6a14
commit
8164710ea4
@ -517,7 +517,8 @@ class Array_map(QtGui.QWidget):
|
|||||||
self.scatter_all_stations()
|
self.scatter_all_stations()
|
||||||
if picks_available:
|
if picks_available:
|
||||||
self.scatter_picked_stations()
|
self.scatter_picked_stations()
|
||||||
self.cbar = self.add_cbar(label='Time relative to first onset ({}) [s]'.format(self._earliest_picktime))
|
if hasattr(self, 'sc_picked'):
|
||||||
|
self.cbar = self.add_cbar(label='Time relative to first onset ({}) [s]'.format(self._earliest_picktime))
|
||||||
self.comboBox_phase.setEnabled(True)
|
self.comboBox_phase.setEnabled(True)
|
||||||
else:
|
else:
|
||||||
self.comboBox_phase.setEnabled(False)
|
self.comboBox_phase.setEnabled(False)
|
||||||
|
Loading…
Reference in New Issue
Block a user