From df1e8ec0b84395003ead6a08e66b4e0a495c99de Mon Sep 17 00:00:00 2001 From: Juncheng E Date: Thu, 1 Apr 2021 17:28:29 +0200 Subject: [PATCH] detector.py: Correct 'coffset' in corner_pos --- extra_geom/detectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra_geom/detectors.py b/extra_geom/detectors.py index 6cea32a1..08ab9d8e 100644 --- a/extra_geom/detectors.py +++ b/extra_geom/detectors.py @@ -32,7 +32,7 @@ def __init__(self, corner_pos, ss_vec, fs_vec, ss_pixels, fs_pixels): @classmethod def from_panel_dict(cls, d): res = d['res'] - corner_pos = np.array([d['cnx'], d['cny'], d['coffset']]) / res + corner_pos = np.array([d['cnx']/res, d['cny']/res, d['coffset']]) ss_vec = np.array([d['ssx'], d['ssy'], d['ssz']]) / res fs_vec = np.array([d['fsx'], d['fsy'], d['fsz']]) / res ss_pixels = d['max_ss'] - d['min_ss'] + 1