Adapt 'temp' to new h5 file format

This commit is contained in:
usov_i 2022-05-20 12:48:54 +02:00
parent f044e739a0
commit c3b198f63a

View File

@ -133,6 +133,8 @@ def read_detector_data(filepath, cami_meta=None):
if "/entry1/sample/temperature" in h5f:
scan["temp"] = h5f["/entry1/sample/temperature"][:]
elif "/entry1/sample/Ts/value" in h5f:
scan["temp"] = h5f["/entry1/sample/Ts/value"][:]
# overwrite metadata from .cami
if cami_meta is not None: