From bee82631849a27e9aa05ee264e45eab7b992ee77 Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Fri, 21 Jan 2022 10:24:30 +0100 Subject: [PATCH] Use dist2 in cami for detector distance --- pyzebra/h5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyzebra/h5.py b/pyzebra/h5.py index 7d66fbe..afebdb5 100644 --- a/pyzebra/h5.py +++ b/pyzebra/h5.py @@ -136,7 +136,7 @@ def read_detector_data(filepath, cami_meta=None): if "detector parameters" in cami_meta: cami_meta_detparam = cami_meta["detector parameters"] - if "dist1" in cami_meta_detparam: - det_data["ddist"] = cami_meta_detparam["dist1"] + if "dist2" in cami_meta_detparam: + det_data["ddist"] = cami_meta_detparam["dist2"] return det_data