mne-python icon indicating copy to clipboard operation
mne-python copied to clipboard

Add native save and read functionality to `SSD` and `SPoC` objects

Open tsbinns opened this issue 5 months ago • 1 comments

Describe the new feature or enhancement

Requested in https://mne.discourse.group/t/no-feature-to-save-an-mne-decoding-ssd-spoc-object/11367

In summary, there is no native option to save and read SSD and SPoC objects. This would be useful to avoid having to re-compute filters over different sessions, like what can be done for ICA filters.

A current workaround is to just pickle the objects, but having this functionality directly in MNE would be useful.

Describe your proposed implementation

Follow the ICA structure with a save() method for saving SSD/SPoC objects and a decoding.read_ssd/spoc() function for loading the saved objects.

Describe possible alternatives

N/A

Additional context

No response

tsbinns avatar Jul 17 '25 02:07 tsbinns

Sounds reasonable to me!

larsoner avatar Jul 17 '25 14:07 larsoner