Skip to content

Commit

Permalink
Merge pull request #60 from JunCEEE/master
Browse files Browse the repository at this point in the history
detector.py: Correct 'coffset' in corner_pos
  • Loading branch information
takluyver authored Apr 1, 2021
2 parents c038f9c + df1e8ec commit a48470d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra_geom/detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a48470d

Please sign in to comment.