From 56427fdef5e5ceb03fb4df8a71f1b35f24dc0994 Mon Sep 17 00:00:00 2001 From: Georgios Efstathiadis Date: Mon, 6 Nov 2023 12:20:09 -0500 Subject: [PATCH] variable stop referenced before assignment --- forest/oak/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/forest/oak/base.py b/forest/oak/base.py index 07de3fa1..803e502c 100644 --- a/forest/oak/base.py +++ b/forest/oak/base.py @@ -372,6 +372,7 @@ def find_continuous_dominant_peaks(valid_peaks: np.ndarray, min_t: int, slice_mat = extended_peaks[:, slice_ind:slice_ind + min_t] windows = list(range(min_t)) + list(range(min_t-2, -1, -1)) + stop = True for win_ind in windows: pr = np.where(slice_mat[:, win_ind] != 0)[0]