reports.generate_processing_report#
- autoclean.functions.visualization.reports.generate_processing_report(raw_original, raw_cleaned, processing_steps, output_path, include_plots=True, title='EEG Processing Report', verbose=None)[source]#
Generate a comprehensive HTML processing report.
This function creates a detailed HTML report summarizing the EEG processing pipeline, including statistics, processing steps, and optional visualizations.
- Parameters:
- raw_original
mne.io.Raw
Original raw EEG data before processing.
- raw_cleaned
mne.io.Raw
Cleaned raw EEG data after processing.
- processing_steps
list
ofdict
List of processing steps with metadata. Each dict should contain: - ‘step_name’: Name of the processing step - ‘parameters’: Dict of parameters used - ‘execution_time’: Time taken for the step - ‘description’: Brief description of what the step does
- output_path
str
orPath
Path where the HTML report will be saved.
- include_plotsbool,
default
True
Whether to include plots in the report.
- title
str
,default
“EEGProcessing
Report” Title for the report.
- verbosebool or
None
,default
None
Control verbosity of output.
- raw_original
- Returns:
- report_path
str
Path to the generated HTML report.
- report_path
See also
plot_raw_comparison
Create before/after comparison plots
plot_ica_components
Visualize ICA components
create_processing_summary
Create JSON processing summary
Examples
>>> steps = [{'step_name': 'Filtering', 'parameters': {'low_freq': 0.1}, ... 'execution_time': 2.3, 'description': 'Applied filter'}] >>> report_path = generate_processing_report(raw_original, raw_cleaned, steps, "report.html")