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: | source_spaces : list
info : dict
|
---|
Attributes
info | (dict) Dictionary with information about the creation of the source space file. Has keys ‘working_dir’ and ‘command_line’. |
Methods
__add__ (other) |
Combine source spaces. |
__contains__ |
x.__contains__(y) <==> y in x |
__getitem__ |
x.__getitem__(y) <==> x[y] |
__iter__ () <==> iter(x) |
|
__len__ () <==> len(x) |
|
__mul__ |
x.__mul__(n) <==> x*n |
append |
L.append(object) – append object to end |
copy () |
Make a copy of the source spaces. |
count (…) |
|
export_volume (fname[, include_surfaces, …]) |
Export source spaces to nifti or mgz file. |
extend |
L.extend(iterable) – extend list by appending elements from the iterable |
index ((value, [start, …) |
Raises ValueError if the value is not present. |
insert |
L.insert(index, object) – insert object before index |
plot ([head, brain, skull, subjects_dir, verbose]) |
Plot the source space. |
pop (…) |
Raises IndexError if list is empty or index is out of range. |
remove |
L.remove(value) – remove first occurrence of value. |
reverse |
L.reverse() – reverse IN PLACE |
save (fname[, overwrite]) |
Save the source spaces to a fif file. |
sort |
L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE; |
__contains__
¶x.__contains__(y) <==> y in x
__getitem__
()¶x.__getitem__(y) <==> x[y]
__iter__
() <==> iter(x)¶__len__
() <==> len(x)¶__mul__
¶x.__mul__(n) <==> x*n
append
()¶L.append(object) – append object to end
copy
()[source]¶Make a copy of the source spaces.
Returns: | src : instance of SourceSpaces
|
---|
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: | fname : str
include_surfaces : bool
include_discrete : bool
dest : ‘mri’ | ‘surf’
trans : dict, str, or None
mri_resolution : bool
use_lut : bool
verbose : bool, str, int, or None
|
---|
Notes
This method requires nibabel.
extend
()¶L.extend(iterable) – 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).
plot
(head=False, brain=None, skull=None, subjects_dir=None, verbose=None)[source]¶Plot the source space.
Parameters: | head : bool
brain : bool | str
skull : bool | str | list of str | list of dict | None
subjects_dir : string, or None
verbose : bool, str, int, or None
|
---|---|
Returns: | fig : instance of mlab Figure
|
pop
([index]) → item – remove and return item at index (default last).¶Raises IndexError if list is empty or index is out of range.
remove
()¶L.remove(value) – 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: | fname : str
overwrite : bool
|
---|
sort
()¶L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE; cmp(x, y) -> -1, 0, 1