mne-features icon indicating copy to clipboard operation
mne-features copied to clipboard

compute_samp_entropy argument of type 'builtin_function_or_method' is not iterable

Open ImanTanumihardja opened this issue 2 years ago • 1 comments

Hello,

I have been using the compute_samp_entropy function and I have updated my sklearn to version 1.3.0 and now the function gives this issue argument of type 'builtin_function_or_method' is not iterable. This is related to a change that skelarn made to the KDTree where the attribute valid_metrics is now a function. The only fix needed is to added parentheses where you try to access KDTree.valid_metrics.

Would love to have this bug fixed asap.

Thank you

ImanTanumihardja avatar Aug 21 '23 16:08 ImanTanumihardja

you'll need to fix mne-features for the new sklearn version

agramfort avatar Aug 22 '23 06:08 agramfort