fooof-tools / fooof

Parameterizing neural power spectra into periodic & aperiodic components.
https://fooof-tools.github.io/
Apache License 2.0
363 stars 98 forks source link

bug report: AttributeError: 'FOOOF' object has no attribute 'to_df' #307

Closed sunh20 closed 9 months ago

sunh20 commented 1 year ago

I've been generating FOOOF and FOOOFGroup reports just fine using version 1.0.0, but the to_df() function hasn't been working for either object. I'm seeing that the get_results() method could be a temp workaround but would ideally have a nicely formatted df.

I tried cloning the fooof repo and checking that the to_df() function is indeed present in the source code. I also ran the plot_data_exporting.ipynb notebook, which generated the same error.

Any help would be appreciated!

TomDonoghue commented 1 year ago

The to_df method is new in version 1.1 - you need to update your version of fooof

TomDonoghue commented 9 months ago

Closing this since there are no action items - hopefully updating fooof worked for you @sunh20!