Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 008b3b13 authored by usov_i's avatar usov_i
Browse files

Fix lattice/ub inputs parsing

parent bc66c593
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,8 @@ def create():
# Change parameter
if flag_ub:
det_data["ub"] = np.array(redef_ub_ti.value.strip().split()).reshape(3, 3)
ub = list(map(float, redef_ub_ti.value.strip().split()))
det_data["ub"] = np.array(ub).reshape(3, 3)
# Convert h k l for all images in file
h_temp = np.empty(np.shape(det_data["counts"]))
......@@ -92,7 +93,8 @@ def create():
I_matrix = np.append(I_matrix, det_data["counts"], axis=0)
if flag_lattice:
lattice = np.array(redef_lattice_ti.value.strip().split())
vals = list(map(float, redef_lattice_ti.value.strip().split()))
lattice = np.array(vals)
else:
lattice = det_data["cell"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment