mne-tools / mne-features

MNE-Features software for extracting features from multivariate time series
https://mne-tools.github.io/mne-features/
BSD 3-Clause "New" or "Revised" License
142 stars 32 forks source link

compute_samp_entropy argument of type 'builtin_function_or_method' is not iterable #92

Open ImanTanumihardja opened 1 year ago

ImanTanumihardja commented 1 year ago

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

agramfort commented 1 year ago

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