Skip to content

ASR.fit error for import '_check_est' #84

@MerlinK75

Description

@MerlinK75

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions