|
|
@ -122,11 +122,7 @@ def create():
|
|
|
|
file_list.append(os.path.basename(scan["original_filename"]))
|
|
|
|
file_list.append(os.path.basename(scan["original_filename"]))
|
|
|
|
|
|
|
|
|
|
|
|
scan_table_source.data.update(
|
|
|
|
scan_table_source.data.update(
|
|
|
|
file=file_list,
|
|
|
|
file=file_list, scan=scan_list, param=param, fit=[0] * len(scan_list), export=export,
|
|
|
|
scan=scan_list,
|
|
|
|
|
|
|
|
param=param,
|
|
|
|
|
|
|
|
fit=[0] * len(scan_list),
|
|
|
|
|
|
|
|
export=export,
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
scan_table_source.selected.indices = []
|
|
|
|
scan_table_source.selected.indices = []
|
|
|
|
scan_table_source.selected.indices = [0]
|
|
|
|
scan_table_source.selected.indices = [0]
|
|
|
@ -346,7 +342,7 @@ def create():
|
|
|
|
mapper["transform"].high = np.max([np.max(y) for y in ys])
|
|
|
|
mapper["transform"].high = np.max([np.max(y) for y in ys])
|
|
|
|
ov_param_plot_scatter_source.data.update(x=x, y=y, param=par)
|
|
|
|
ov_param_plot_scatter_source.data.update(x=x, y=y, param=par)
|
|
|
|
|
|
|
|
|
|
|
|
if y:
|
|
|
|
try:
|
|
|
|
interp_f = interpolate.interp2d(x, y, par)
|
|
|
|
interp_f = interpolate.interp2d(x, y, par)
|
|
|
|
x1, x2 = min(x), max(x)
|
|
|
|
x1, x2 = min(x), max(x)
|
|
|
|
y1, y2 = min(y), max(y)
|
|
|
|
y1, y2 = min(y), max(y)
|
|
|
@ -358,7 +354,7 @@ def create():
|
|
|
|
ov_param_plot_image_source.data.update(
|
|
|
|
ov_param_plot_image_source.data.update(
|
|
|
|
image=[image], x=[x1], y=[y1], dw=[x2 - x1], dh=[y2 - y1]
|
|
|
|
image=[image], x=[x1], y=[y1], dw=[x2 - x1], dh=[y2 - y1]
|
|
|
|
)
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
except Exception:
|
|
|
|
ov_param_plot_image_source.data.update(image=[], x=[], y=[], dw=[], dh=[])
|
|
|
|
ov_param_plot_image_source.data.update(image=[], x=[], y=[], dw=[], dh=[])
|
|
|
|
|
|
|
|
|
|
|
|
def _update_param_plot():
|
|
|
|
def _update_param_plot():
|
|
|
@ -781,7 +777,7 @@ def create():
|
|
|
|
export_data = []
|
|
|
|
export_data = []
|
|
|
|
param_data = []
|
|
|
|
param_data = []
|
|
|
|
for scan, param in zip(det_data, scan_table_source.data["param"]):
|
|
|
|
for scan, param in zip(det_data, scan_table_source.data["param"]):
|
|
|
|
if scan["export"]:
|
|
|
|
if scan["export"] and param:
|
|
|
|
export_data.append(scan)
|
|
|
|
export_data.append(scan)
|
|
|
|
param_data.append(param)
|
|
|
|
param_data.append(param)
|
|
|
|
|
|
|
|
|
|
|
|