From dac1237009a350bbd07a37b668a1b9255ad08661 Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Tue, 15 Dec 2020 14:49:17 +0100 Subject: [PATCH] Output UB matrix --- pyzebra/app/panel_spind.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyzebra/app/panel_spind.py b/pyzebra/app/panel_spind.py index aaea667..df8016d 100644 --- a/pyzebra/app/panel_spind.py +++ b/pyzebra/app/panel_spind.py @@ -75,7 +75,11 @@ def create(): try: with open(os.path.join(temp_dir, "spind.txt")) as f_out: - output_textarea.value = f_out.readlines() + full_out = "" + for line in f_out: + ub_matrix = np.inv(np.transpose(list(map(float, line.split()[-9:])))) + full_out = full_out + str(ub_matrix) + output_textarea.value = full_out except FileNotFoundError: print("No results from spind")