Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changes/dev/13891.other.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed the ``fun`` shape description in :meth:`mne.Epochs.apply_function`'s docstring, by :newcontrib:`Bhargav Kowshik`.
1 change: 1 addition & 0 deletions doc/changes/names.inc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
.. _Beige Jin: https://github.com/BeiGeJin
.. _Ben Beasley: https://github.com/musicinmybrain
.. _Benedikt Ehinger: https://www.benediktehinger.de
.. _Bhargav Kowshik: https://github.com/bkowshik
.. _Bradley Voytek: https://github.com/voytek
.. _Britta Westner: https://britta-wstnr.github.io
.. _Bruno Aristimunha: https://bruaristimunha.github.io
Expand Down
2 changes: 1 addition & 1 deletion mne/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@ def apply_function(

Parameters
----------
%(fun_applyfun)s
%(fun_applyfun_epochs)s
%(picks_all_data_noref)s
%(dtype_applyfun)s
%(n_jobs)s Ignored if ``channel_wise=False`` as the workload
Expand Down
5 changes: 5 additions & 0 deletions mne/utils/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1919,6 +1919,11 @@ def _reflow_param_docstring(docstring, has_first_line=True, width=75):
docdict["fun_applyfun"] = applyfun_fun_base.format(
" if ``channel_wise=True`` and ``(len(picks), n_times)`` otherwise"
)
docdict["fun_applyfun_epochs"] = applyfun_fun_base.format(
" if ``channel_wise=True`` (because it will apply to 1-D"
" slices along the times axis) and"
" ``(n_epochs, len(picks), n_times)`` otherwise"
)
docdict["fun_applyfun_evoked"] = applyfun_fun_base.format(
" because it will apply channel-wise"
)
Expand Down
Loading