Skip to content

Commit

Permalink
Changed epochs_clean_sub = model_plain.apply(epochs) to epochs_clean_…
Browse files Browse the repository at this point in the history
…sub = model_sub.apply(epochs), making use of the regression coefficients from model_sub. #12977 (#12978)
  • Loading branch information
JacPhe authored Nov 22, 2024
1 parent a99aa9f commit 149453c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changes/devel/12978.other.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a mistake in :ref:`tut-artifact-regression` where the wrong regression coefficients were applied, by :newcontrib:`Jacob Phelan`.
1 change: 1 addition & 0 deletions doc/changes/names.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 149453c

Please sign in to comment.