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:
stcmne.SourceEstimate

SourceEstimate object to save

autoclean_dictdict

Configuration dictionary

stagestr

Processing stage identifier (default: “post_source_localization”)

output_pathOptional[Path]

Optional custom output path. If None, uses config

Returns:
Path: Path

Path to the saved file (stage path)