3 Commits
0.6.0 ... 0.6.1

Author SHA1 Message Date
328b71e058 Updating for version 0.6.1 2021-11-19 16:20:19 +01:00
11ab8485bc Avoid crush on failed interp2d
There is often not enough data for 2d interpolation at intermediate data
analysis steps
2021-11-16 18:55:30 +01:00
4734b3e50f Do not export data without a specified parameter 2021-11-15 16:32:16 +01:00
2 changed files with 5 additions and 9 deletions

View File

@ -5,4 +5,4 @@ from pyzebra.h5 import *
from pyzebra.utils import *
from pyzebra.xtal import *
__version__ = "0.6.0"
__version__ = "0.6.1"

View File

@ -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)