pycartool.spi.SourceSpaceπ
- class pycartool.spi.SourceSpace(names, coordinates, subject=None, filename=None)π
Container for source space data.
- Parameters:
Attributes
n_sources
(int) Number of sources.
names
(list of str) The solutions point names. Length
n_sources.coordinates
(
array) The solutions point names coordinates. Shape(n_sources,3)subject
(str) Subject from who the source space was created.
filename
(str or file-like) If loaded from a file, the corresponding filename.
Methods
get_center_of_mass([method])Compute the center of mass of the Source Space.
Return a copy of sources coordinates.
Return a copy of sources names.
save(filename)Write SourceSpace to
.spifile.- get_center_of_mass(method='mean')π
Compute the center of mass of the Source Space.
- get_coordinates()π
Return a copy of sources coordinates.
- Returns:
- coordinates
array The solutions point names coordinates. shape(
n_sources,3).
- coordinates
- get_names()π
Return a copy of sources names.