mne.read_source_estimate(fname, subject=None)

Read a soure estimate object


fname : str

Path to (a) source-estimate file(s).

subject : str | None

Name of the subject the source estimate(s) is (are) from. It is good practice to set this attribute to avoid combining incompatible labels and SourceEstimates (e.g., ones from other subjects). Note that due to file specification limitations, the subject name isn’t saved to or loaded from files written to disk.


stc : SourceEstimate | VolSourceEstimate

The soure estimate object loaded from file.


  • for volume source estimates, fname should provide the path to a single file named ‘` or ‘’
  • for surface source estimates, fname should either provide the path to the file corresponding to a single hemisphere (‘’, ‘’) or only specify the asterisk part in these patterns. In any case, the function expects files for both hemisphere with names following this pattern.
  • for single time point .w files, fname should follow the same pattern as for surface estimates, except that files are named ‘-lh.w’ and ‘-rh.w’.