morph to volume source after apply_lcmv_epochs

External Email - Use Caution

Hi list,
I am creating volume source space of whole brain and then obtain stcs per
single trial using apply_lcmv_epochs, and then morphing to fsaverage.
Following is the snippet,

stcs = apply_lcmv_epochs(epochs_hilb, filters,max_ori_out='signed')
morph = mne.compute_source_morph(fwd['src'],
                                 subject_from=subj, subject_to='fsaverage',
                                 subjects_dir=subjects_dir)
stc_fsaverage = morph.apply(stcs)

whenever i am trying to apply the morphing [for example:
morph.apply(stcs)], the code lands up with a error:

AttributeError: 'list' object has no attribute 'subject'

What could be the possible solution without changing the pipeline?
It will be really helpful if list can help me!
Thanks

External Email - Use Caution

`apply_lcmv_epochs` returns a list of STCs, not a single STC:

https://martinos.org/mne/stable/generated/mne.beamformer.apply_lcmv_epochs.html

So you probably want to iterate over them and morph each one, e.g.:

stcs_fsaverage = [morph.apply(stc) for stc in stcs]

Eric