saving an stc file with mne-python

Hi MNE Experts,

In trying to use mne-python to save an stc file, I used to use
mne.write_stc(), but that seems to be deprecated in the latest version. So
now I'm trying to save my output at an stc file this way:

sources = mne.SourceEstimate(data=cond1_subj_stc,
vertices=cond1_subj_stc.vertno, tmin=cond1_subj_stc.tmin,
tstep=cond1_subj_stc.tstep)

filename = (data_path + 'w_nw_dSPM_0p1_40Hz')

sources.save(filename, ftype='stc')

But when I do that, the last step gives this error:

In [69]: sources.save(filename, ftype='stc')

Hey Will,

You should just be able to do "cond1_subj_stc.save(...)" directly, as it
looks like it is itself a SourceEstimate (what mne-python turns .stc files
into when you read them). When manually constructing a SourceEstimate
(which I don't think is what you want to do), the first argument needs to
be a `numpy.ndarray`, not another SourceEstimate (which I think is what
"cond1_subj_stc" is).

Cheers,
Eric

Yes, that worked perfectly, Eric. Thank you!

-Will