fooof.utils.io.load_fooof¶
- fooof.utils.io.load_fooof(file_name, file_path=None, regenerate=True)[source]¶
Load a FOOOF file into a FOOOF object.
- Parameters
- file_namestr or FileObject
File to load the data from.
- file_pathPath or str, optional
Path to directory to load from. If None, loads from current directory.
- regeneratebool, optional, default: True
Whether to regenerate the model fit from the loaded data, if data is available.
- Returns
- fmFOOOF
Object with the loaded data.