You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I am trying to fit the ASR class to my EEG data with the following code asr = ASR(sfreq=self.srate, cutoff=20, method="euclid") train_idx = np.arange(time_range[0] * self.srate, time_range[1] * self.srate, dtype=int) asr.fit(filtered_eeg[:7, train_idx])
However, it is causing the error:
cannot import name '_check_est' from 'pyriemann.utils.covariance'
After looking at covariance.py there is no command 'import _check_est' present in the newest version, so how I fixed this was installing pyRiemann 0.3 instead of 0.7 which fixed the error. I believe the requirement.txt need to be updated to prevent this error or updating the code to adapt to the new changes present in the covariance.py file
Hi nbara, no urgency here all i did was install the older version and it works fine. I can open a PR and just change the requirement.txt so everyone has version 0.3 as a quick fix for everyone until a better solution comes around
Activity
nbara commentedon Jan 4, 2025
Thanks for flagging @MerlinK75 , you're right
_check_estis not available in recent pyriemann. I'll update ASAP.If it's urgent, you're welcome to open a PR, the fix is super simple and I can help you out
MerlinK75 commentedon Jan 4, 2025
Hi nbara, no urgency here all i did was install the older version and it works fine. I can open a PR and just change the requirement.txt so everyone has version 0.3 as a quick fix for everyone until a better solution comes around