Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
clara-escanuela committed May 16, 2023
1 parent a93f275 commit 9ecd144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ctapipe/image/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1679,8 +1679,9 @@ def __call__(

if leading_edge_timing:
d_waveforms = deconvolve(waveforms, 0.0, upsampling, 1)

# correct the offset between leading edge peak and deconvolved peak
peak_index = np.round(peak_index - pz2d).astype(int)
peak_index = np.round(peak_index - pz2d).astype(int)
n_samples = d_waveforms.shape[-1]
np.clip(peak_index, 0, n_samples - 1, out=peak_index)
peak_time = adaptive_centroid(
Expand Down

0 comments on commit 9ecd144

Please sign in to comment.