mne.
SourceSpaces
(source_spaces, info=None)[source]¶Represent a list of source space.
Currently implemented as a list of dictionaries containing the source space information
Parameters: |
|
---|---|
Attributes: |
|
Methods
__add__ (other) |
Combine source spaces. |
__contains__ ($self, key, /) |
Return key in self. |
__getitem__ |
x.__getitem__(y) <==> x[y] |
__iter__ ($self, /) |
Implement iter(self). |
__len__ ($self, /) |
Return len(self). |
__mul__ ($self, value, /) |
Return self*value. |
append (object) |
|
clear () |
|
copy () |
Make a copy of the source spaces. |
count (value) |
|
export_volume (fname[, include_surfaces, …]) |
Export source spaces to nifti or mgz file. |
extend (iterable) |
|
index (value, [start, [stop]]) |
Raises ValueError if the value is not present. |
insert |
L.insert(index, object) – insert object before index |
plot ([head, brain, skull, subjects_dir, …]) |
Plot the source space. |
pop ([index]) |
Raises IndexError if list is empty or index is out of range. |
remove (value) |
Raises ValueError if the value is not present. |
reverse |
L.reverse() – reverse IN PLACE |
save (fname[, overwrite]) |
Save the source spaces to a fif file. |
sort ([key, reverse]) |
__contains__
($self, key, /)¶Return key in self.
__getitem__
()¶x.__getitem__(y) <==> x[y]
__iter__
($self, /)¶Implement iter(self).
__len__
($self, /)¶Return len(self).
__mul__
($self, value, /)¶Return self*value.
append
(object) → None -- append object to end¶clear
() → None -- remove all items from L¶copy
()[source]¶Make a copy of the source spaces.
Returns: |
|
---|
count
(value) → integer -- return number of occurrences of value¶export_volume
(fname, include_surfaces=True, include_discrete=True, dest='mri', trans=None, mri_resolution=False, use_lut=True, verbose=None)[source]¶Export source spaces to nifti or mgz file.
Parameters: |
|
---|
Notes
This method requires nibabel.
extend
(iterable) → None -- extend list by appending elements from the iterable¶index
(value[, start[, stop]]) → integer -- return first index of value.¶Raises ValueError if the value is not present.
insert
()¶L.insert(index, object) – insert object before index
kind
¶The kind of source space (surface, volume, discrete, mixed).
plot
(head=False, brain=None, skull=None, subjects_dir=None, trans=None, verbose=None)[source]¶Plot the source space.
Parameters: |
|
---|---|
Returns: |
|
pop
([index]) → item -- remove and return item at index (default last).¶Raises IndexError if list is empty or index is out of range.
remove
(value) → None -- remove first occurrence of value.¶Raises ValueError if the value is not present.
reverse
()¶L.reverse() – reverse IN PLACE
save
(fname, overwrite=False)[source]¶Save the source spaces to a fif file.
Parameters: |
|
---|
sort
(key=None, reverse=False) → None -- stable sort *IN PLACE*¶