Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
b2129805dc | |||
92765b5665 | |||
328b71e058 | |||
11ab8485bc | |||
4734b3e50f |
@ -5,4 +5,4 @@ from pyzebra.h5 import *
|
|||||||
from pyzebra.utils import *
|
from pyzebra.utils import *
|
||||||
from pyzebra.xtal import *
|
from pyzebra.xtal import *
|
||||||
|
|
||||||
__version__ = "0.6.0"
|
__version__ = "0.6.2"
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ def merge_scans(scan_into, scan_from):
|
|||||||
|
|
||||||
scan_into[scan_motor] = pos_tmp
|
scan_into[scan_motor] = pos_tmp
|
||||||
scan_into["counts"] = val_tmp / num_tmp
|
scan_into["counts"] = val_tmp / num_tmp
|
||||||
scan_into["counts_err"] = np.sqrt(err_tmp)
|
scan_into["counts_err"] = np.sqrt(err_tmp) / num_tmp
|
||||||
|
|
||||||
scan_from["export"] = False
|
scan_from["export"] = False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user