Container for volume source estimates. Parameters ---------- data : array of shape (n_dipoles, n_times) | tuple, shape (2,) The data in source space. The data can either be a single array or a tuple with two arrays: "kernel" shape (n_vertices, n_sensors) and "sen
| 2620 | |
| 2621 | @fill_doc |
| 2622 | class VolSourceEstimate(_BaseVolSourceEstimate): |
| 2623 | """Container for volume source estimates. |
| 2624 | |
| 2625 | Parameters |
| 2626 | ---------- |
| 2627 | data : array of shape (n_dipoles, n_times) | tuple, shape (2,) |
| 2628 | The data in source space. The data can either be a single array or |
| 2629 | a tuple with two arrays: "kernel" shape (n_vertices, n_sensors) and |
| 2630 | "sens_data" shape (n_sensors, n_times). In this case, the source |
| 2631 | space data corresponds to ``np.dot(kernel, sens_data)``. |
| 2632 | %(vertices_volume)s |
| 2633 | %(tmin)s |
| 2634 | %(tstep)s |
| 2635 | %(subject_optional)s |
| 2636 | %(verbose)s |
| 2637 | |
| 2638 | Attributes |
| 2639 | ---------- |
| 2640 | subject : str | None |
| 2641 | The subject name. |
| 2642 | times : array of shape (n_times,) |
| 2643 | The time vector. |
| 2644 | %(vertices_volume)s |
| 2645 | data : array of shape (n_dipoles, n_times) |
| 2646 | The data in source space. |
| 2647 | shape : tuple |
| 2648 | The shape of the data. A tuple of int (n_dipoles, n_times). |
| 2649 | |
| 2650 | See Also |
| 2651 | -------- |
| 2652 | SourceEstimate : A container for surface source estimates. |
| 2653 | VectorSourceEstimate : A container for vector surface source estimates. |
| 2654 | VolVectorSourceEstimate : A container for volume vector source estimates. |
| 2655 | MixedSourceEstimate : A container for mixed surface + volume source |
| 2656 | estimates. |
| 2657 | |
| 2658 | Notes |
| 2659 | ----- |
| 2660 | .. versionadded:: 0.9.0 |
| 2661 | """ |
| 2662 | |
| 2663 | @verbose |
| 2664 | def save(self, fname, ftype="stc", *, overwrite=False, verbose=None): |
| 2665 | """Save the source estimates to a file. |
| 2666 | |
| 2667 | Parameters |
| 2668 | ---------- |
| 2669 | fname : path-like |
| 2670 | The stem of the file name. The stem is extended with ``"-vl.stc"`` |
| 2671 | or ``"-vl.w"``. |
| 2672 | ftype : str |
| 2673 | File format to use. Allowed values are ``"stc"`` (default), |
| 2674 | ``"w"``, and ``"h5"``. The ``"w"`` format only supports a single |
| 2675 | time point. |
| 2676 | %(overwrite)s |
| 2677 | |
| 2678 | .. versionadded:: 1.0 |
| 2679 | %(verbose)s |
no outgoing calls