Skip to content

Commit 153f18e

Browse files
committed
Cache _get_window_thresh
1 parent 7d1444a commit 153f18e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mne/filter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from collections import Counter
88
from copy import deepcopy
9-
from functools import partial
9+
from functools import cache, partial
1010
from math import gcd
1111

1212
import numpy as np
@@ -1586,6 +1586,7 @@ def notch_filter(
15861586
return xf
15871587

15881588

1589+
@cache
15891590
def _get_window_thresh(n_times, sfreq, mt_bandwidth, p_value):
15901591
from .time_frequency.multitaper import _compute_mt_params
15911592

0 commit comments

Comments
 (0)