Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
diaza committed May 2, 2024
1 parent 503d3ce commit 6833b9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/proto_nd_flow/reco/light/timestamp_corrector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion src/proto_nd_flow/reco/light/wvfm_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 6833b9f

Please sign in to comment.