From c3b198f63a7a7f2cdb5c22eb29752ed9f5b987eb Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Fri, 20 May 2022 12:48:54 +0200 Subject: [PATCH] Adapt 'temp' to new h5 file format --- pyzebra/h5.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyzebra/h5.py b/pyzebra/h5.py index 3ab9b6d..795692d 100644 --- a/pyzebra/h5.py +++ b/pyzebra/h5.py @@ -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: