Package mvpa :: Package misc :: Module iohelpers :: Class McFlirtParams
[hide private]
[frames] | no frames]

Class McFlirtParams

source code


Read and write McFlirt's motion estimation parameters from and to text files.
Instance Methods [hide private]
new empty dictionary

__init__(self, source)
Read data from file into a dictionary.
source code
 
tofile(self, filename)
Write motion parameters to file.
source code

Inherited from ColumnData: __iadd__, __str__, getNColumns, getNRows, selectSamples

Inherited from ColumnData (private): _check, _fromFile, _getAttrib

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  header_def = ['rot1', 'rot2', 'rot3', 'x', 'y', 'z']
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, source)
(Constructor)

source code 

Read data from file into a dictionary.

Parameters

  • source: Can be a filename or a dictionary. In the case of the

    first all data is read from that file and additonal keyword arguments can be sued to customize the read procedure. If a dictionary is passed a deepcopy is performed.

  • header: Indicates whether the column names should be read from the

    first line (header=True). If header=False unique column names will be generated (see class docs). If header is a python list, it's content is used as column header names and its length has to match the number of columns in the file.

  • sep: Separator string. The actual meaning depends on the output

    format (see class docs).

  • dtype: Desired datatype.

Returns:
new empty dictionary

Overrides: object.__init__

tofile(self, filename)

source code 
Write motion parameters to file.
Overrides: ColumnData.tofile