From a7ae19c5c30ea138934403dc05fada37b0c2284e Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Tue, 31 Mar 2020 11:08:49 +0200 Subject: [PATCH] Fix typos in h5 paths Closes #1 --- pyzebra/h5.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyzebra/h5.py b/pyzebra/h5.py index 1ea310e..7d8ce21 100644 --- a/pyzebra/h5.py +++ b/pyzebra/h5.py @@ -49,9 +49,9 @@ def read_detector_data(filepath): tlt_angle = h5f["/entry1/ZEBRA/area_detector2/tilt_angle"][:] # nud ddist = h5f["/entry1/ZEBRA/area_detector2/distance"][:] wave = h5f["/entry1/ZEBRA/monochromator/wavelength"][:] - chi_angle = h5f["/entry1/ZEBRA/sample/chi"][:] # ch - phi_angle = h5f["/entry1/ZEBRA/sample/chi"][:] # ph - UB = h5f["/entry1/ZEBRA/sample/UB"][:] + chi_angle = h5f["/entry1/sample/chi"][:] # ch + phi_angle = h5f["/entry1/sample/phi"][:] # ph + UB = h5f["/entry1/sample/UB"][:] return detector_data,pol_angle,rot_angle,tlt_angle,chi_angle,phi_angle,ddist,wave,UB