From 6833b9fd9dd7e73929696e2236e1507e6aa4a9f6 Mon Sep 17 00:00:00 2001 From: Alejandro Diaz Date: Thu, 2 May 2024 14:43:12 -0700 Subject: [PATCH] Formatting --- src/proto_nd_flow/reco/light/timestamp_corrector.py | 2 +- src/proto_nd_flow/reco/light/wvfm_align.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proto_nd_flow/reco/light/timestamp_corrector.py b/src/proto_nd_flow/reco/light/timestamp_corrector.py index 4593a6f3..24ef5afe 100644 --- a/src/proto_nd_flow/reco/light/timestamp_corrector.py +++ b/src/proto_nd_flow/reco/light/timestamp_corrector.py @@ -30,7 +30,7 @@ class LightTimestampCorrector(H5FlowStage): default_slope = defaultdict(float) def t_ns_dtype(self, nadcs): return np.dtype([ - ('t_ns', 'f8', (nadcs)) + ('t_ns', 'f8', (nadcs,)) ]) def __init__(self, **params): diff --git a/src/proto_nd_flow/reco/light/wvfm_align.py b/src/proto_nd_flow/reco/light/wvfm_align.py index 14b150a5..341d9b0d 100644 --- a/src/proto_nd_flow/reco/light/wvfm_align.py +++ b/src/proto_nd_flow/reco/light/wvfm_align.py @@ -122,7 +122,7 @@ def run(self, source_name, source_slice, cache): busy_wvfm, rising_edge, axis=-1) / np.take_along_axis(busy_d, rising_edge, axis=-1) align_data['sample_idx'][:,adc] = rising_edge.ravel() - + i_event_offset = np.argmax(align_data['sample_idx'], axis=-1)[...,np.newaxis] align_data['ns'] = np.take_along_axis( event_data['tai_ns'],