Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in fooof() line 59 #33

Open
SusLop opened this issue Jun 19, 2024 · 3 comments
Open

Error in fooof() line 59 #33

SusLop opened this issue Jun 19, 2024 · 3 comments

Comments

@SusLop
Copy link

SusLop commented Jun 19, 2024

Dear all,
I am trying to run FOOOF from eeglab but I get an error at line 59 saying:

"Same base class matlab.mixin.internal.indexing.Paren specified more than once for class py.foof.data.data.FOOOFResults. Specify each class only once."

Any help would be really appreciated!

MATLAB is correctly seeing the python version installed and all the libraries have been already installed.

Thank you for your help!

@bli40
Copy link

bli40 commented Jun 21, 2024

got the same error. It seemed like some wrapper translation bug.

I wrote this function in MATLAB and it spits out the same thing as what is documented. Hope it works for you!

function model_fit = fooof_get_params(fm)
model_fit = struct();

model_fit.aperiodic_params = double(py.array.array('d',fm.aperiodic_params_));
model_fit.peak_params = double(fm.get_params('peak_params'));
model_fit.error = double(fm.get_params('error'));
model_fit.r_squared = double(fm.get_params('r_squared'));
model_fit.n_peaks = double(fm.get_params('n_peaks'));

end

@SusLop
Copy link
Author

SusLop commented Jun 24, 2024

Thank you so much for your kind reply!
Where should I put this function?

Thanks! :)

@bli40
Copy link

bli40 commented Jun 25, 2024

I popped it in the //fooof_mat/fooof_mat/ directory wherever you cloned the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants