How to save the stcs computed from apply_lcmv_epochs ?

External Email - Use Caution

Hai list,
I was trying to save the 'stcs' computed using apply_lcmv_epochs.

stcs = apply_lcmv_epochs(epochs, filters, max_ori_out='signed')

I couldn't find any method to save it. Is there any way i can save this
stcs as a single file(so that i can read in another code)?

thanks

External Email - Use Caution

hi pooja,

stcs is a list of MNE objects. If you want to write them in a single
file try using

from mne.externals.h5io import write_hdf5
write_hdf5(stcs)

I guess it should work.

Alex

External Email - Use Caution

Hai Alex,
I tried the way you mentioned.
I end up with the following error,

TypeError: unsupported type <class 'mne.source_estimate.VolSourceEstimate'>
(in <class 'list'>[0])

Thanks

External Email - Use Caution

Then I fear that you need to store all the STCs in single files.

Alex