mvpa2.misc.io.base.TuebingenMEGSensorLocations

Inheritance diagram of TuebingenMEGSensorLocations
class mvpa2.misc.io.base.TuebingenMEGSensorLocations(source)

Read sensor location definitions from a specific text file format.

File layout is assumed to be 7 columns:

1:   sensor name
2:   position on y-axis
3:   position on x-axis
4:   position on z-axis
5-7: same as 2-4, but for some outer surface thingie.

Note that x and y seem to be swapped, ie. y as defined by SensorLocations conventions seems to be first axis and followed by x.

Only inner surface coordinates are reported by locations().

Attributes

ncolumns Returns the number of columns.
nrows Returns the number of rows.

Methods

clear()
copy()
fromkeys(S[,v]) v defaults to None.
get(k[,d])
has_key(k)
items()
iteritems()
iterkeys()
itervalues()
keys()
locations() Get the sensor locations as an array.
pop(k[,d]) If key is not found, d is returned if given, otherwise KeyError is raised
popitem() 2-tuple; but raise KeyError if D is empty.
select_samples(selection) Return new ColumnData with selected samples
setdefault(k[,d])
tofile(filename[, header, header_order, sep]) Write column data to a text file.
update([E, ]**F) If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values()
viewitems()
viewkeys()
viewvalues()

Read sensor locations from file.

Parameters:source : filename of an attribute file

Attributes

ncolumns Returns the number of columns.
nrows Returns the number of rows.

Methods

clear()
copy()
fromkeys(S[,v]) v defaults to None.
get(k[,d])
has_key(k)
items()
iteritems()
iterkeys()
itervalues()
keys()
locations() Get the sensor locations as an array.
pop(k[,d]) If key is not found, d is returned if given, otherwise KeyError is raised
popitem() 2-tuple; but raise KeyError if D is empty.
select_samples(selection) Return new ColumnData with selected samples
setdefault(k[,d])
tofile(filename[, header, header_order, sep]) Write column data to a text file.
update([E, ]**F) If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values()
viewitems()
viewkeys()
viewvalues()