Container for surface source estimates. Parameters ---------- data : array of shape (n_dipoles, n_times) | tuple, shape (2,) The data in source space. When it is a single array, the left hemisphere is stored in data[:len(vertices[0])] and the right hemisphere is
| 1837 | |
| 1838 | @fill_doc |
| 1839 | class SourceEstimate(_BaseSurfaceSourceEstimate): |
| 1840 | """Container for surface source estimates. |
| 1841 | |
| 1842 | Parameters |
| 1843 | ---------- |
| 1844 | data : array of shape (n_dipoles, n_times) | tuple, shape (2,) |
| 1845 | The data in source space. When it is a single array, the |
| 1846 | left hemisphere is stored in data[:len(vertices[0])] and the right |
| 1847 | hemisphere is stored in data[-len(vertices[1]):]. |
| 1848 | When data is a tuple, it contains two arrays: |
| 1849 | |
| 1850 | - "kernel" shape (n_vertices, n_sensors) and |
| 1851 | - "sens_data" shape (n_sensors, n_times). |
| 1852 | |
| 1853 | In this case, the source space data corresponds to |
| 1854 | ``np.dot(kernel, sens_data)``. |
| 1855 | vertices : list of array, shape (2,) |
| 1856 | Vertex numbers corresponding to the data. The first element of the list |
| 1857 | contains vertices of left hemisphere and the second element contains |
| 1858 | vertices of right hemisphere. |
| 1859 | %(tmin)s |
| 1860 | %(tstep)s |
| 1861 | %(subject_optional)s |
| 1862 | %(verbose)s |
| 1863 | |
| 1864 | Attributes |
| 1865 | ---------- |
| 1866 | subject : str | None |
| 1867 | The subject name. |
| 1868 | times : array of shape (n_times,) |
| 1869 | The time vector. |
| 1870 | vertices : list of array, shape (2,) |
| 1871 | The indices of the dipoles in the left and right source space. |
| 1872 | data : array of shape (n_dipoles, n_times) |
| 1873 | The data in source space. |
| 1874 | shape : tuple |
| 1875 | The shape of the data. A tuple of int (n_dipoles, n_times). |
| 1876 | |
| 1877 | See Also |
| 1878 | -------- |
| 1879 | VectorSourceEstimate : A container for vector surface source estimates. |
| 1880 | VolSourceEstimate : A container for volume source estimates. |
| 1881 | VolVectorSourceEstimate : A container for volume vector source estimates. |
| 1882 | MixedSourceEstimate : A container for mixed surface + volume source |
| 1883 | estimates. |
| 1884 | """ |
| 1885 | |
| 1886 | @verbose |
| 1887 | def save(self, fname, ftype="stc", *, overwrite=False, verbose=None): |
| 1888 | """Save the source estimates to a file. |
| 1889 | |
| 1890 | Parameters |
| 1891 | ---------- |
| 1892 | fname : path-like |
| 1893 | The stem of the file name. The file names used for surface source |
| 1894 | spaces are obtained by adding ``"-lh.stc"`` and ``"-rh.stc"`` (or |
| 1895 | ``"-lh.w"`` and ``"-rh.w"``) to the stem provided, for the left and |
| 1896 | the right hemisphere, respectively. |
no outgoing calls