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