Temporary fix for new h5 files

Datasets has changed from a single number to arrays
This commit is contained in:
usov_i 2022-05-06 12:14:27 +02:00
parent 4ebb343afb
commit 279dee3935

View File

@ -98,8 +98,8 @@ def read_detector_data(filepath, cami_meta=None):
scan["gamma"] = h5f["/entry1/ZEBRA/area_detector2/polar_angle"][:] scan["gamma"] = h5f["/entry1/ZEBRA/area_detector2/polar_angle"][:]
scan["twotheta"] = h5f["/entry1/ZEBRA/area_detector2/polar_angle"][:] scan["twotheta"] = h5f["/entry1/ZEBRA/area_detector2/polar_angle"][:]
scan["nu"] = h5f["/entry1/ZEBRA/area_detector2/tilt_angle"][:] scan["nu"] = h5f["/entry1/ZEBRA/area_detector2/tilt_angle"][0:1]
scan["ddist"] = h5f["/entry1/ZEBRA/area_detector2/distance"][:] scan["ddist"] = h5f["/entry1/ZEBRA/area_detector2/distance"][0:1]
scan["wave"] = h5f["/entry1/ZEBRA/monochromator/wavelength"][:] scan["wave"] = h5f["/entry1/ZEBRA/monochromator/wavelength"][:]
scan["chi"] = h5f["/entry1/sample/chi"][:] scan["chi"] = h5f["/entry1/sample/chi"][:]
scan["phi"] = h5f["/entry1/sample/phi"][:] scan["phi"] = h5f["/entry1/sample/phi"][:]