For unknown reasons sometimes station and network information are not
avaialble, avoid program failure.
This commit is contained in:
parent
e4cfebe989
commit
f93499da7d
6
PyLoT.py
6
PyLoT.py
@ -2468,8 +2468,10 @@ class MainWindow(QMainWindow):
|
||||
def pickDialog(self, wfID, seed_id=None):
|
||||
if not seed_id:
|
||||
seed_id = self.getTraceID(wfID)
|
||||
network, station, location = seed_id.split('.')[:3]
|
||||
if not station or not network:
|
||||
try:
|
||||
network, station, location = seed_id.split('.')[:3]
|
||||
except:
|
||||
print("Warning! No network, station, and location info available!")
|
||||
return
|
||||
self.update_status('picking on station {0}'.format(station))
|
||||
data = self.get_data().getOriginalWFData().copy()
|
||||
|
Loading…
Reference in New Issue
Block a user