Private
Public Access
1
0

return controlled error for data without time data

This commit is contained in:
Sander Roosendaal
2017-05-23 09:13:52 +02:00
parent 60e868c040
commit a50041cc92

View File

@@ -1438,6 +1438,11 @@ def interactive_flex_chart2(id=0,promember=0,
except KeyError:
pass
try:
tseconds = rowdata.ix[:,'time']
except KeyError:
return '','No time data - cannot make flex plot','',''
try:
rowdata['x1'] = rowdata.ix[:,xparam]
except KeyError:
@@ -1447,9 +1452,7 @@ def interactive_flex_chart2(id=0,promember=0,
rowdata['y1'] = rowdata.ix[:,yparam1]
except KeyError:
rowdata['y1'] = 0*rowdata.ix[:,'time']
tseconds = rowdata.ix[:,'time']
if yparam2 != 'None':
try:
rowdata['y2'] = rowdata.ix[:,yparam2]