[closes #124] PILOT event data can be loaded now
This commit is contained in:
10
QtPyLoT.py
10
QtPyLoT.py
@@ -577,7 +577,13 @@ class MainWindow(QMainWindow):
|
||||
|
||||
ycoord = gui_event.ydata
|
||||
|
||||
statID = int(round(ycoord))
|
||||
try:
|
||||
statID = int(round(ycoord))
|
||||
except TypeError as e:
|
||||
if 'a float is required' in e.message:
|
||||
return None
|
||||
else:
|
||||
raise e
|
||||
|
||||
return statID
|
||||
|
||||
@@ -724,6 +730,8 @@ class MainWindow(QMainWindow):
|
||||
|
||||
wfID = self.getWFID(gui_event)
|
||||
|
||||
if not wfID: return
|
||||
|
||||
station = self.getStationName(wfID)
|
||||
self.updateStatus('picking on station {0}'.format(station))
|
||||
data = self.getData().getWFData()
|
||||
|
||||
Reference in New Issue
Block a user