return controlled error for data without time data
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user