Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
328b71e058 | |||
11ab8485bc | |||
4734b3e50f |
@ -5,4 +5,4 @@ from pyzebra.h5 import *
|
||||
from pyzebra.utils import *
|
||||
from pyzebra.xtal import *
|
||||
|
||||
__version__ = "0.6.0"
|
||||
__version__ = "0.6.1"
|
||||
|
@ -122,11 +122,7 @@ def create():
|
||||
file_list.append(os.path.basename(scan["original_filename"]))
|
||||
|
||||
scan_table_source.data.update(
|
||||
file=file_list,
|
||||
scan=scan_list,
|
||||
param=param,
|
||||
fit=[0] * len(scan_list),
|
||||
export=export,
|
||||
file=file_list, scan=scan_list, param=param, fit=[0] * len(scan_list), export=export,
|
||||
)
|
||||
scan_table_source.selected.indices = []
|
||||
scan_table_source.selected.indices = [0]
|
||||
@ -346,7 +342,7 @@ def create():
|
||||
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)
|
||||
|
||||
if y:
|
||||
try:
|
||||
interp_f = interpolate.interp2d(x, y, par)
|
||||
x1, x2 = min(x), max(x)
|
||||
y1, y2 = min(y), max(y)
|
||||
@ -358,7 +354,7 @@ def create():
|
||||
ov_param_plot_image_source.data.update(
|
||||
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=[])
|
||||
|
||||
def _update_param_plot():
|
||||
@ -781,7 +777,7 @@ def create():
|
||||
export_data = []
|
||||
param_data = []
|
||||
for scan, param in zip(det_data, scan_table_source.data["param"]):
|
||||
if scan["export"]:
|
||||
if scan["export"] and param:
|
||||
export_data.append(scan)
|
||||
param_data.append(param)
|
||||
|
||||
|
Reference in New Issue
Block a user