fooof-tools / fooof

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

Create setters/getters for check modes and fix management #294

Closed SM-Figueroa closed 1 year ago

SM-Figueroa commented 1 year ago

This fix adds setters and getters for run_modes in fooof objects in fit.py. The dictionary returned by get_description() in info.py includes attributes for all run_modes. The get_fooof() and get_group() functions in group.py are now updated to probably transfer run mode settings from the current object to newly instantiated objects. Documentation relating to run_modes was updated in all files.

This Pull Request relates to this issue.

TomDonoghue commented 1 year ago

Awesome, thanks @SM-Figueroa! I redirected this PR to #293 and did a merge commit to combine the additions here with those (you can see the changes in the last commit). I'm going to merge this PR now, which will add your changes to the checkmodes branch, and things can be finalized and merged to main from there! Thanks for your contribution!