mvpa2.misc.io.base.SensorLocations¶
-
class
mvpa2.misc.io.base.SensorLocations(*args, **kwargs)¶ Base class for sensor location readers.
Each subclass should provide x, y, z coordinates via the
pos_x,pos_y, andpos_zattrbibutes.Axes should follow the following convention:
x-axis: left -> right y-axis: anterior -> posterior z-axis: superior -> inferiorAttributes
ncolumnsReturns the number of columns. nrowsReturns 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] values()viewitems()viewkeys()viewvalues()Pass arguments to ColumnData.
Attributes
ncolumnsReturns the number of columns. nrowsReturns 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] values()viewitems()viewkeys()viewvalues()-
locations()¶ Get the sensor locations as an array.
Returns: (nchannels x 3) array with coordinates in (x, y, z)
-

