export.save_stc_to_file#
- autoclean.io.export.save_stc_to_file(stc, autoclean_dict, stage='post_source_localization', output_path=None)[source]#
Save source estimate (STC) data to file.
This function saves an MNE SourceEstimate object at a specified processing stage, consistent with the pipeline’s directory structure and configuration.
- Parameters:
- stc
mne.SourceEstimate
SourceEstimate object to save
- autoclean_dict
dict
Configuration dictionary
- stage
str
Processing stage identifier (default: “post_source_localization”)
- output_path
Optional
[Path
] Optional custom output path. If None, uses config
- stc
- Returns:
- Path:
Path
Path to the saved file (stage path)
- Path: