diff --git a/doc/changes/devel/12978.other.rst b/doc/changes/devel/12978.other.rst new file mode 100644 index 00000000000..33e73c2d8f9 --- /dev/null +++ b/doc/changes/devel/12978.other.rst @@ -0,0 +1 @@ +Fix a mistake in :ref:`tut-artifact-regression` where the wrong regression coefficients were applied, by :newcontrib:`Jacob Phelan`. diff --git a/doc/changes/names.inc b/doc/changes/names.inc index 4f5d9e7eb9d..79fbe9b1236 100644 --- a/doc/changes/names.inc +++ b/doc/changes/names.inc @@ -119,6 +119,7 @@ .. _Ivo de Jong: https://github.com/ivopascal .. _Jaakko Leppakangas: https://github.com/jaeilepp .. _Jack Zhang: https://github.com/jackz314 +.. _Jacob Phelan: https://github.com/JacPhe .. _Jacob Woessner: https://github.com/withmywoessner .. _Jair Montoya Martinez: https://github.com/jmontoyam .. _Jan Ebert: https://www.jan-ebert.com/ diff --git a/tutorials/preprocessing/35_artifact_correction_regression.py b/tutorials/preprocessing/35_artifact_correction_regression.py index 77e7447c268..646195ae0a1 100644 --- a/tutorials/preprocessing/35_artifact_correction_regression.py +++ b/tutorials/preprocessing/35_artifact_correction_regression.py @@ -149,7 +149,7 @@ fig.set_size_inches(3, 2) # apply the regression coefficients to the original epochs -epochs_clean_sub = model_plain.apply(epochs).apply_baseline() +epochs_clean_sub = model_sub.apply(epochs).apply_baseline() fig = epochs_clean_sub.average("all").plot(**plot_kwargs) fig.set_size_inches(6, 6)