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.io.SampleAttributes

Inheritance diagram of SampleAttributes

class mvpa2.misc.io.SampleAttributes(source, literallabels=True, header=None)

Read and write PyMVPA sample attribute definitions from and to text files.

Read PyMVPA sample attributes from disk.

Parameters :

source : str

Filename of an atrribute file

literallabels : bool, optional

Either labels are given as literal strings

header : None or bool or list of str

If None, [‘targets’, ‘chunks’] is assumed. Otherwise the same behavior as of ColumnData

nsamples

Returns the number of samples in the file.

tofile(filename)

Write sample attributes to a text file.

NeuroDebian

NITRC-listed