To provide the most recent news and documentation www.pymvpa.org reflects the development 2.0 series (renamed 0.6 series) of PyMVPA. If you are interested in the documentation of the previous stable 0.4 series of PyMVPA, please visit v04.pymvpa.org.

mvpa2.misc.support.mask2slice

mvpa2.misc.support.mask2slice(mask)

Convert a boolean mask vector into an equivalent slice (if possible).

Parameters :

mask: boolean array :

The mask.

Returns :

slice or boolean array :

If possible the boolean mask is converted into a slice. If this is not possible the unmodified boolean mask is returned.

Previous topic

mvpa2.misc.support.is_sorted

Next topic

mvpa2.misc.support.ncombinations

NeuroDebian

NITRC-listed