Is there a way to save an MNE.decoding.SSD or an MNE.decoding.SPoC object?
For example, it exists for MNE.preprocessing.ICA (save() method).
It would be very practical and avoid rerunning SSD and then SPoC each time!
With the caveat that I’m answering from a phone so I haven’t reviewed the implementation of SPoC/SSD, I think it ought to be fairly straightforward to add this, preferably using __setstate__ and __getstate__ like we do for e.g. spectrum objects or TFRs. The fact that pickling already works suggests it should be straightforward.
@emile Is this something you would be interested in submitting a PR for? If not I could try to work on this in the coming weeks. The pickling workaround can be used meanwhile.
The change would go in mne/decoding/ssd.py and mne/decoding/csp.py; you can use __getstate__ and __setstate__ definitions from mne/time_frequency/tfr.py (mne/label.py also has examples) as inspiration. Will need to add or update some tests too, to make sure the save/load round-trip preserves all the relevant information.