Skip to content

Commit 12ab11d

Browse files
committed
2 parents 60677d8 + 9cfe0e9 commit 12ab11d

27 files changed

Lines changed: 659 additions & 25 deletions

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
# Ruff mne
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.15.6
4+
rev: v0.15.8
55
hooks:
66
- id: ruff-check
77
name: ruff lint mne
@@ -58,7 +58,7 @@ repos:
5858
args: ["--ignore-case"]
5959

6060
- repo: https://github.com/pappasam/toml-sort
61-
rev: v0.24.3
61+
rev: v0.24.4
6262
hooks:
6363
- id: toml-sort-fix
6464
files: pyproject.toml

doc/api/decoding.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ Functions that assist with decoding and model fitting:
4141
cross_val_multiscore
4242
get_coef
4343
get_spatial_filter_from_estimator
44+
read_csp
45+
read_spoc
46+
read_ssd
47+
read_xdawn_transformer

doc/changes/dev/13687.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix bug in :func:`~mne.compute_source_morph` where the ``spacing`` attribute was set incorrectly when ``src_to`` is provided, by `Famous077`_.

doc/changes/dev/13698.other.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add optional low-variance ("hat") regularization to :func:`mne.stats.f_oneway` via new ``sigma`` and ``method`` parameters, by `Aniket Singh Yadav`_.

doc/changes/dev/13700.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Avoid raising an error when setting montage on a :class:`~mne.channels.DigMontage` of MEG+EEG recordings, when EEG reference positions were set to the placeholder value ``[1, 0, 0]`` (i.e., digitization was not performed), by `Famous077`_.

doc/changes/dev/13718.other.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add native save and read functionality for :class:`mne.decoding.SSD`, :class:`mne.decoding.CSP`, :class:`mne.decoding.SPoC`, and :class:`mne.decoding.XdawnTransformer` objects, by `Aniket Singh Yadav`_.

doc/changes/dev/13769.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix bug in when reading EDF/GDF files where non-positive lowpass values were not handled correctly, now mapping them to the Nyquist frequency to prevent errors during plotting, by :newcontrib:`Hansuja Budhiraja`.

doc/changes/dev/13771.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clearer error message when no ECG events are found in :func:`~mne.preprocessing.find_ecg_events`, by :newcontrib:`Hansuja Budhiraja`.

doc/changes/names.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
.. _Hakimeh Pourakbari: https://github.com/Hpakbari
118118
.. _Hamid Maymandi: https://github.com/HamidMandi
119119
.. _Hamza Abdelhedi: https://github.com/BabaSanfour
120+
.. _Hansuja Budhiraja: https://github.com/HansujaB
120121
.. _Hari Bharadwaj: https://github.com/haribharadwaj
121122
.. _Harrison Ritz: https://github.com/harrisonritz
122123
.. _Hasrat Ali Arzoo: https://github.com/hasrat17

mne/channels/montage.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,12 @@ def _backcompat_value(pos, ref_pos):
12561256
# keep reference location from EEG-like channels if they
12571257
# already exist and are all the same.
12581258
# Note: ref position is an empty list for fieldtrip data
1259-
if len(ref_pos) and ref_pos[0].any() and (ref_pos[0] == ref_pos).all():
1259+
if (
1260+
len(ref_pos)
1261+
and ref_pos[0].any()
1262+
and (ref_pos[0] == ref_pos).all()
1263+
and not np.array_equal(ref_pos[0], [1.0, 0.0, 0.0])
1264+
):
12601265
eeg_ref_pos = ref_pos[0]
12611266
# since we have an EEG reference position, we have
12621267
# to add it into the info['dig'] as EEG000

0 commit comments

Comments
 (0)