Generate a functional label from source estimates in rh or both

When I attempt to create a functional label using the example
script<http://martinos.org/mne/stable/auto_examples/inverse/plot_label_from_stc.html#example-inverse-plot-label-from-stc-py>in
the lh, it works well on my data. I am, however, having a lot of
trouble
getting the rh or both hemispheres to work. Specifically, when I specify
'rh' or 'both' for hemi, I get an empty result for

func_labels, _ = mne.stc_to_label
<http://martinos.org/mne/stable/generated/mne.stc_to_label.html#mne.stc_to_label>(stc_mean_label
<http://martinos.org/mne/stable/generated/mne.SourceEstimate.html#mne.SourceEstimate>,
src=src, smooth=5,
                                  subjects_dir=subjects_dir, connected=True)

Do I have to do some function calls not in the example to get rh or both to
work?

thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140305/8d8eb883/attachment.html

Hi Matt,

could you share a snippet based on the sample data so we can reproduce the
problem?
I've recently used this function a lot for both hemispheres (after setting
the sub-threshold vertices to zero).

Best,
Denis

Here's a gist for that. <https://gist.github.com/mattjerhart/9377713>
Thanks!

hi Matt,

I have not tried but I suspect the problem comes from the use of BiHemiLabel.
I suspect a bug. In the mean time I recommend you work separately with the
left and right labels.

pull request welcome as usual.

Alex