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 242da76c authored by usov_i's avatar usov_i
Browse files

Adaptations to the displayed UB matrix

parent 0c812a5d
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ def create(): ...@@ -118,7 +118,7 @@ def create():
ub_matrix_spind = np.array(vals).reshape(3, 3) ub_matrix_spind = np.array(vals).reshape(3, 3)
ub_matrix = np.linalg.inv(np.transpose(ub_matrix_spind)) ub_matrix = np.linalg.inv(np.transpose(ub_matrix_spind))
ub_matrices.append(ub_matrix) ub_matrices.append(ub_matrix)
spind_res["ub_matrix"].append(ub_matrix * 1e9) spind_res["ub_matrix"].append(ub_matrix_spind)
results_table_source.data.update(spind_res) results_table_source.data.update(spind_res)
...@@ -142,7 +142,7 @@ def create(): ...@@ -142,7 +142,7 @@ def create():
res = "" res = ""
for vec in diff_vec: for vec in diff_vec:
res += f"{ub_matrix @ vec}\n" res += f"{ub_matrix @ vec}\n"
ub_matrix_textareainput.value = str(results_table_source.data["ub_matrix"][ind]) ub_matrix_textareainput.value = str(ub_matrix * 1e10)
hkl_textareainput.value = res hkl_textareainput.value = res
else: else:
ub_matrix_textareainput.value = None ub_matrix_textareainput.value = None
......
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