From f2fad953391780ce2564de945ebbd139b09d4b5c Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Tue, 31 Mar 2020 11:58:26 +0200 Subject: [PATCH] Reshape UB matrix on read --- pyzebra/h5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyzebra/h5.py b/pyzebra/h5.py index 56440e3..823c65f 100644 --- a/pyzebra/h5.py +++ b/pyzebra/h5.py @@ -53,7 +53,7 @@ def read_detector_data(filepath): det_data["wave"] = h5f["/entry1/ZEBRA/monochromator/wavelength"][:] det_data["chi_angle"] = h5f["/entry1/sample/chi"][:] # ch det_data["phi_angle"] = h5f["/entry1/sample/phi"][:] # ph - det_data["UB"] = h5f["/entry1/sample/UB"][:] + det_data["UB"] = h5f["/entry1/sample/UB"][:].reshape(3,3) return det_data