-
Notifications
You must be signed in to change notification settings - Fork 101
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
Python Error: TypeError: 'NoneType' object is not iterable #239
Comments
Hey @4srihy - I don't use Matlab, so I can't rerun the file you provided, and I can't see the trace of the error you mention. Can you write a copy of the command you are using the run fooof, and a screenshot of the error? |
Hey @4srihy - sorry for dropping off / slow reply here. Since this relates to Matlab, and the Matlab wrapper, then this issue would be better placed over on the On the fooof_mat issues page (https://github.com/fooof-tools/fooof_mat/issues) there is quite a lot of discussion of how to address issues with using FOOOF in Matlab. Basically, when the model fails to fit (as happens in that particular example), the Matlab wrapper fails. That's an issue with the Matlab wrapper. In general, model failing is pretty uncommon, and you should be able to avoid this by tweaking the settings. If you are getting models that fail, you should be able to just ignore these models and continue. Since this issue is about |
While working in matlab, for some data, I am getting 'Python Error: TypeError: 'NoneType' object is not iterable' with the aperiodic_mode = 'knee'. This issue is sometimes specific to certain frequency range. How to resolve it? Code stops running when this error is thrown. Can we give any condition in matlab, so that code continues to run even after the error?
I have attaching the sample data of matlab
NoneTypeError.zip
The text was updated successfully, but these errors were encountered: