Skip to content

Commit 59791ec

Browse files
pre-commit
1 parent 689e820 commit 59791ec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

eegdash/features/feature_bank/complexity.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ def preprocess(self, x, m=2, r=0.2, l=1):
3636
counts_m = np.empty((*x.shape[:-1], (x.shape[-1] - m + 1) // l))
3737
counts_mp1 = np.empty((*x.shape[:-1], (x.shape[-1] - m) // l))
3838
for i in np.ndindex(x.shape[:-1]):
39-
counts_m[i + (slice(None),)] = _channel_app_samp_entropy_counts(x[i], m, rr[i], l)
40-
counts_mp1[i + (slice(None),)] = _channel_app_samp_entropy_counts(x[i], m + 1, rr[i], l)
39+
counts_m[i + (slice(None),)] = _channel_app_samp_entropy_counts(
40+
x[i], m, rr[i], l
41+
)
42+
counts_mp1[i + (slice(None),)] = _channel_app_samp_entropy_counts(
43+
x[i], m + 1, rr[i], l
44+
)
4145
return counts_m, counts_mp1
4246

4347

0 commit comments

Comments
 (0)