Commit 3fc2efca authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

fix minor export bug

caused exceptions in some circumstances
parent d1418d29
......@@ -242,7 +242,8 @@ def export_layout_yaml(plotdict, path, bw=False, window_title=None, window_size=
if any(plot.vb.state['autoRange']):
plot_item['yrange'] = 'auto'
else:
plot_item['yrange'] = plot.vb.viewRange()[1]
# convert to float from numpy.float64
plot_item['yrange'] = [float(y) for y in plot.vb.viewRange()[1]]
plots.append(plot_item)
template['plots'] = plots
template['window-title'] = window_title
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment