Skip to content

FIX: Avoid iteration errors caused by None when reading Nihon Kohden .LOG files#13915

Merged
larsoner merged 2 commits into
mne-tools:mainfrom
myd7349:fix-nk-log
May 26, 2026
Merged

FIX: Avoid iteration errors caused by None when reading Nihon Kohden .LOG files#13915
larsoner merged 2 commits into
mne-tools:mainfrom
myd7349:fix-nk-log

Conversation

@myd7349
Copy link
Copy Markdown
Contributor

@myd7349 myd7349 commented May 24, 2026

Reference issue (if any)

Reported by @eulerleibniz .


Hello there @larsoner . Not sure if i need to create a new issue for this, but the new code has a bug here:
in line 341 here:

            for li, t_log in enumerate(t_logs): # Chek if t_logs Is None
                t_desc, t_onset = _parse_event_log(t_log)
                if t_sub_logs is not None and t_sub_logs.size == t_logs.size:
                    t_sub_desc, t_sub_onset = _parse_sub_event_log(t_sub_logs[li])
                    t_desc += t_sub_desc
                    t_onset += t_sub_onset

You did not check if t_logs is None, so we get errors on enumerate.

Originally posted by @eulerleibniz in #13251 (comment)


@myd7349 I just did what you asked. using mne.version = 1.12.1

The error doesn't happen with my files which have EEG-1100A V01.00 in their header.
It only happens with EEG files which have header EEG-1200A V01.00.
I also checked the mne version=1.10.0 of the mne which also had issues with this old format and they clearly wrote this in nihon file in line 50:

_valid_headers = [
    "EEG-1100A V01.00",
    "EEG-1100B V01.00",
    "EEG-1100C V01.00",
    "QI-403A   V01.00",
    "QI-403A   V02.00",
    "EEG-2100  V01.00",
    "EEG-2100  V02.00",
    "DAE-2100D V01.30",
    "DAE-2100D V02.00",
    # 'EEG-1200A V01.00',  # Not working for the moment.
]

where it was clearly mentioned that they don't support that specific version yet.
here is the output of the prints you asked on these files:

🪲 Failed to read version: [''], expected: EEG-1200A V01.00.
🪲 Failed to read version: [''], expected: EEG-1200A V01.00.
Traceback (most recent call last):
  File "c:\GitHub\Vigilant\vigilant\emu\sop_v0_1_0\nihon.py", line 460, in <module>
    raw_mne = mne.io.read_raw_nihon(path, preload=False)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Titania\anaconda3\envs\devenv\Lib\site-packages\mne\io\nihon\nihon.py", line 52, in read_raw_nihon
    return RawNihon(fname, preload, encoding=encoding, verbose=verbose)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<decorator-gen-207>", line 12, in __init__
  File "C:\Users\Titania\anaconda3\envs\devenv\Lib\site-packages\mne\io\nihon\nihon.py", line 506, in __init__
    annots = _read_nihon_annotations(fname, encoding)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Titania\anaconda3\envs\devenv\Lib\site-packages\mne\io\nihon\nihon.py", line 375, in _read_nihon_annotations
    for li, t_log in enumerate(t_logs):
                     ^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

Originally posted by @eulerleibniz in #13251 (comment)

What does this implement/fix?

This is a follow-up to #13251. In #13251, some additional checks were added to _read_event_log_block (including a version check), which could cause _read_event_log_block to return None, leading to iteration errors.

This change avoids that issue by returning an empty array instead of None when reading fails. In addition, when the version does not match, a warning is now issued instead of returning None.

Additional information

….LOG files

This is a follow-up to mne-tools#13251. In mne-tools#13251, some additional checks were added to
`_read_event_log_block` (including a version check), which could cause
`_read_event_log_block` to return `None`, leading to iteration errors.

This change avoids that issue by returning an empty array instead of `None` when
reading fails. In addition, when the version does not match, a warning is now
issued instead of returning `None`.
@myd7349 myd7349 changed the title Fix: Avoid returning None in _read_event_log_block Fix: Avoid iteration errors caused by None when reading Nihon Kohden .LOG files May 24, 2026
@myd7349 myd7349 marked this pull request as ready for review May 24, 2026 16:48
@myd7349 myd7349 changed the title Fix: Avoid iteration errors caused by None when reading Nihon Kohden .LOG files FIX: Avoid iteration errors caused by None when reading Nihon Kohden .LOG files May 25, 2026
Copy link
Copy Markdown
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me! I'll commit the suggested change and mark for merge-when-green, thanks in advance @myd7349 !

Comment thread doc/changes/dev/13915.bugfix.rst Outdated
@larsoner larsoner enabled auto-merge (squash) May 26, 2026 16:10
@larsoner larsoner merged commit 571b17c into mne-tools:main May 26, 2026
38 of 40 checks passed
@myd7349 myd7349 deleted the fix-nk-log branch May 27, 2026 00:26
harrisonritz added a commit to harrisonritz/mne-python that referenced this pull request May 27, 2026
* [pre-commit.ci] pre-commit autoupdate (mne-tools#13646)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* Fix and extend anonymize_info (mne-tools#13647)

* Fix epochs.plot() scrollbar issue (mne-tools#13654)

* ENH: Add optional channel name overlay to plot_alignment (mne-tools#13570)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel McCloy <dan@mccloy.info>

* Fix docstrings for get_data() (mne-tools#13652)

* DOC: Add detail to make_watershed_bem volume parameter (mne-tools#13658)

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13663)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* update maintainers lists (mne-tools#13631)

* Fixes make_scalp_surfaces (mne-tools#13024)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Marijn van Vliet <w.m.vanvliet@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* DOC: Add pybvrf [skip azp] [skip actions] (mne-tools#13665)

* Expose bem submodule (mne-tools#13669)

* Rename `Epochs.reset_drop_log_selection()` to `Epochs.reset_index()` (mne-tools#13675)

* MAINT: Work around NumPy deprecation (mne-tools#13677)

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13678)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* Allow reading alternative nasion label (Nz) from snirf file (mne-tools#13672)

Co-authored-by: Daniel McCloy <dan@mccloy.info>

* use a lockfile for "old" CI job (mne-tools#13490)

Co-authored-by: Carina Forster <carinaforster0611@gmail.com>
Co-authored-by: Thomas S. Binns <t.s.binns@outlook.com>
Co-authored-by: Scott Huberty <52462026+scott-huberty@users.noreply.github.com>
Co-authored-by: Erica Peterson <nordme@uw.edu>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* Fix bad cross-ref syntax (mne-tools#13690)

* Doc- clarify return types as instance of original type (mne-tools#13674)

Co-authored-by: Marijn van Vliet <w.m.vanvliet@gmail.com>

* update partner institution list (mne-tools#13668)

* MAINT: Update code credit (mne-tools#13709)

Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13716)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* DOC: clarify index mismatch in Epochs.drop when epochs are auto-dropped (mne-tools#13688)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Thomas S. Binns <t.s.binns@outlook.com>
Co-authored-by: Daniel McCloy <dan@mccloy.info>

* ENH: support per-vertex opacity in 3D overlays (mne-tools#13706)

Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* FIX: Spelling [ci skip]

* Fix generation of lockfile for old job (mne-tools#13724)

* eyetrack should not count as picks=data (mne-tools#13723)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Scott Huberty <52462026+scott-huberty@users.noreply.github.com>

* BUG: prevent NaNs in layered overlay compositing when resulting alpha is zero (mne-tools#13714)

Co-authored-by: Marijn van Vliet <w.m.vanvliet@gmail.com>

* Added HEDAnnotations (mne-tools#13059)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel McCloy <dan@mccloy.info>
Co-authored-by: Bru <b.aristimunha@gmail.com>
Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>

* [dependabot]: Bump the actions group with 2 updates (mne-tools#13728)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13734)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* Raising meaningful warnings/errors for interpolate_bads, when supplie… (mne-tools#13518)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* BUG: Fix bug with default (mne-tools#13744)

* DOC: document first_samp behavior after crop and RawArray workaround (mne-tools#13685)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* FIX: do not print dev_head_t if not available (mne-tools#13741)

Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* FIX: Link [ci skip]

* Update name [ci skip]

* MAINT: cleanup Python 3.9 compat from __future__ import annotations (mne-tools#13749)

Co-authored-by: Marijn van Vliet <w.m.vanvliet@gmail.com>

* FIX: Handle hidden annotations during deletion in mpl plot (mne-tools#13703)

* ENH: Log scaling better (mne-tools#13758)

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13762)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* FORWARD: assert invariant for unreachable rref branch in _lead_dots (mne-tools#13764)

* Improve handling of dropped epochs in ica.plot_properties (mne-tools#13746)

* Support mixed hed annotations, concat and solve version registration (mne-tools#13736)

* ENH: compute CSD directly for upper-triangle channel pairs in Fourier/multitaper (mne-tools#13719)

* Extend plot_csd support to SEEG, ECoG, and DBS channel types (mne-tools#13713)

Co-authored-by: Thomas S. Binns <t.s.binns@outlook.com>
Co-authored-by: Marijn van Vliet <w.m.vanvliet@gmail.com>

* Add example for Python/R interoperability using mass univariate t-test (mne-tools#13729)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Daniel McCloy <dan@mccloy.info>

* [BUG] `IndexError` in `set_montage()` for MEG+EEG recordings when digitization is skipped (mne-tools#13700)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* FIX: remap lowpass <= 0 to Nyquist in GDF/EDF reader (mne-tools#13769)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* FIX: correct spacing attribute in SourceMorph when src_to is provided (mne-tools#13687)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13779)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* fix bad xrefs in changelog (mne-tools#13783)

* DOC: fix invalid cross-reference in 13700 changelog entry (mne-tools#13785)

* FIX: raise clear ValueError when no ECG events found in create_ecg_ep… (mne-tools#13771)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel McCloy <dan@mccloy.info>

* ENH: Add native save and read support for SSD (mne-tools#13718)

Co-authored-by: Thomas S. Binns <t.s.binns@outlook.com>

* ENH: Add variance regularization to F-statistic in f_oneway (mne-tools#13698)

Co-authored-by: Daniel McCloy <dan@mccloy.info>

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13802)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* ENH: allow per-channel colors in raw.plot via channel name dict keys (mne-tools#13765)

* Fix top and bottom clipping in raw.plot() (mne-tools#13787)

* MAINT: Update code credit (mne-tools#13805)

* FIX: short-circuit n_jobs=None to n_jobs=1 without Parallel setup (mne-tools#13777)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel McCloy <dan@mccloy.info>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Replacing abstractclassmethod with abstractmethod (mne-tools#13806)

* ENH: expose font_file in Brain.add_text (mne-tools#13778)

Co-authored-by: Daniel McCloy <dan@mccloy.info>
Co-authored-by: Marijn van Vliet <w.m.vanvliet@gmail.com>

* ENH: add cmap parameter to Evoked.animate_topomap (mne-tools#13756)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* MAINT: Install SciPy pre (mne-tools#13807)

* ENH: Replace custom _whosmat_hdf5 with pymatreader.whosmat (mne-tools#13753)

* MAINT: Make sys_info more robust (mne-tools#13810)

* MAINT: Remove tomli, tomlsort, and ruff from `test` group (mne-tools#13809)

* BUG: Fix bug with fwd.info["dev_head_t"] setting (mne-tools#13619)

* ENH: Add initial BCI2000 .dat reader (preload-only) (mne-tools#13699)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* Add pybispectra as related software (mne-tools#13812)

* DOC: Fix type annotation for order parameter in Epochs.plot() (mne-tools#13639)

Co-authored-by: Daniel McCloy <dan@mccloy.info>
Co-authored-by: Scott Huberty <52462026+scott-huberty@users.noreply.github.com>

* [dependabot]: Bump the actions group with 2 updates (mne-tools#13817)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* fixed some info fields in MEG interpolation across sensor types using… (mne-tools#13759)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* ENH: Add support for plotting ICA source timecourses in Report.add_ica (mne-tools#13697)

* FIX: correct sensor name ordering in plot_topomap when using Info object (mne-tools#13686)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* MAINT: Update dependency specifiers (mne-tools#13814)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Thomas S. Binns <t.s.binns@outlook.com>

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13818)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* MAINT: Update code credit [ci skip] (mne-tools#13823)

Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* Update values to int64 (mne-tools#13548)

Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel McCloy <dan@mccloy.info>

* FIX: Installer links etc [ci skip]

* TST: Doc

* FIX: correct mode parameter in get_point_spread and get_cross_talk (mne-tools#13754)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* DOC: Add epoch quality example (mne-tools#13710)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Thomas S. Binns <t.s.binns@outlook.com>

* Change syncing of dependencies with `README` (mne-tools#13832)

* DOC: Fix changelog [circle deploy] (mne-tools#13833)

Co-authored-by: Thomas S. Binns <t.s.binns@outlook.com>

* Exclude private submodules (e.g., _edf) from Credits page (mne-tools#13673)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* BUG: Fix bug with backward compat [circle deploy] (mne-tools#13835)

* Fix bug with credit [circle deploy] (mne-tools#13841)

* ENH: broaden OPM coil handling for colocated topomaps (mne-tools#13825)

* DOC: Add artifact-cleaning note to epoch quality example. (mne-tools#13827)

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13839)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* FIX: Ref [skip azp] [skip actions]

* BUG: Fix bug with logging level (mne-tools#13843)

* fix env var in actions (mne-tools#13844)

Co-authored-by: Scott Huberty <52462026+scott-huberty@users.noreply.github.com>

* TST: Add regression coverage for OPM topomap grouping via `plot_joint()` and `ICA` (mne-tools#13842)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* Customize annotation colors (mne-tools#13838)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* DOC: Remove invalid ndarray option from colormap docstrings (mne-tools#13797)

* Fix versionadded for annotation_colors (mne-tools#13853)

* [dependabot]: Bump the actions group with 2 updates (mne-tools#13852)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13854)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* MAINT: Links [circle deploy] [skip azp] [skip actions]

* MAINT: add OPM overlap grouping helper (mne-tools#13847)

* FIX: Correct fNIRS interpolation with reordered picks (mne-tools#13856)

* MAINT: Modernize numpydoc checks (mne-tools#13865)

* Allow concatenating `BaseRaw` objects (mne-tools#13263)

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* Add dark theme to Matplotlib-based raw.plot (mne-tools#13861)

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* FIX: Check [ci skip]

* FIX: Sets [ci skip]

* Update towncrier change type descriptions (mne-tools#13829)

* fix numpydoc (missed YD01 ignore) (mne-tools#13868)

* FIX: correct label orientation for 0-90 deg nodes in plot_connectivity_circle (mne-tools#13855)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel McCloy <dan@mccloy.info>

* [dependabot]: Bump the actions group with 3 updates (mne-tools#13871)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13873)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* Add preload keyward argument to Inst.load_data() method call (mne-tools#13858)

* MAINT: Make test dir read-only (mne-tools#13872)

* BUG: improve FreeSurfer error message when executable not found (mne-tools#13874)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* add CI description to contributing guide (mne-tools#13837)

Co-authored-by: Daniel McCloy <dan@mccloy.info>

* Fix grammar [ci skip] (mne-tools#13881)

* FIX: handle missing __version__ in check_version (mne-tools#13870)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* apply diataxis to tutorials/inverse/80_brainstorm_phantom_elekta.py (mne-tools#13584)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add AI policy (mne-tools#13883)

* MAINT: Switch to pip for macOS and minimal jobs (mne-tools#13882)

* MAINT: Update code credit (mne-tools#13878)

* ENH:  Allow passing source detector distances to beer lambert law (mne-tools#13875)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* MAINT: Update for vtk deprecation (mne-tools#13886)

* ENH: Add overrides= parameter to read_raw_brainvision for BIDS header repair (mne-tools#13884)

* Fix bug with ica.plot_properties (mne-tools#13885)

* Fix `picks` being ignored in `Epochs.apply_function()` (mne-tools#13894)

* Update describing changes in contributing guide (mne-tools#13895)

* Add Zuna to related software list (mne-tools#13849)

Co-authored-by: Daniel McCloy <dan@mccloy.info>

* [dependabot]: Bump github/codeql-action from 4.35.2 to 4.35.3 in the actions group (mne-tools#13897)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* DOC: Fix apply_function shape description for Epochs (mne-tools#13891)

Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* Raise warning and errors when np.nan provided to mne.stats.permutation_t_test(). (mne-tools#13813)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Erica R Peterson <38704848+nordme@users.noreply.github.com>

* MAINT: Update dependency specifiers (mne-tools#13899)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* [dependabot]: Bump github/codeql-action from 4.35.3 to 4.35.4 in the actions group (mne-tools#13901)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13902)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* MAINT: Remove workaround for old PySide6 (mne-tools#13900)

* Add spherical montages (mne-tools#13903)

* [dependabot]: Bump the actions group with 2 updates (mne-tools#13918)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* [pre-commit.ci] pre-commit autoupdate (mne-tools#13919)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>

* MAINT: Update dependency specifiers (mne-tools#13916)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>

* BUG: set_eeg_reference list ch_type now applies per-type CAR by default (mne-tools#13920)

* FIX: Avoid iteration errors caused by None when reading Nihon Kohden .LOG files (mne-tools#13915)

* Fix drop_log dtype (mne-tools#13923)

* Doc: add guidance on taking over a stale pull request (mne-tools#13877)

Co-authored-by: Thomas S. Binns <t.s.binns@outlook.com>
Co-authored-by: Daniel McCloy <dan@mccloy.info>

* FIX: Make set_eeg_reference working with a string for a channel name (mne-tools#13917)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mne[bot] <50266005+mne-bot@users.noreply.github.com>
Co-authored-by: Clemens Brunner <clemens.brunner@gmail.com>
Co-authored-by: Aman Srivastava <160766756+aman-coder03@users.noreply.github.com>
Co-authored-by: Daniel McCloy <dan@mccloy.info>
Co-authored-by: Himanshu Mahor <140396762+1himan@users.noreply.github.com>
Co-authored-by: Scott Huberty <52462026+scott-huberty@users.noreply.github.com>
Co-authored-by: Victor Férat <victor.ferat@live.Fr>
Co-authored-by: Marijn van Vliet <w.m.vanvliet@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Aniket <148300120+Aniketsy@users.noreply.github.com>
Co-authored-by: Carina Forster <carinaforster0611@gmail.com>
Co-authored-by: Thomas S. Binns <t.s.binns@outlook.com>
Co-authored-by: Erica Peterson <nordme@uw.edu>
Co-authored-by: Horizon_Architect_07 <famousrajbhatt@gmail.com>
Co-authored-by: Pragnya <prag1704@gmail.com>
Co-authored-by: Benedikt Ehinger <science@benediktehinger.de>
Co-authored-by: Kay Robbins <1189050+VisLab@users.noreply.github.com>
Co-authored-by: Bru <b.aristimunha@gmail.com>
Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Johannes Herforth <johannes@herforth.net>
Co-authored-by: Hansuja <hansujaigdtuwcseai@gmail.com>
Co-authored-by: Simon Kern <14980558+skjerns@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Akhilesh <126486217+YadavAkhileshh@users.noreply.github.com>
Co-authored-by: CHH <christoph@huber-huber.at>
Co-authored-by: Teon L Brooks <teon.brooks@gmail.com>
Co-authored-by: Lifeng <76589235+Gnefil@users.noreply.github.com>
Co-authored-by: Kalle Mäkelä <31903287+Kallemakela@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Pavel Popov <ppopov1@student.gsu.edu>
Co-authored-by: Ayushi Satodiya <ayushisatodiya2411@gmail.com>
Co-authored-by: Seth Bashford <sbashford@users.noreply.github.com>
Co-authored-by: Baris <250097450+baris-talar@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Jonas Mago <57872952+jonasmago@users.noreply.github.com>
Co-authored-by: Bhargav Kowshik <bhargav.kowshik@gmail.com>
Co-authored-by: Erica R Peterson <38704848+nordme@users.noreply.github.com>
Co-authored-by: Ben Tang <ben.tang@duke.edu>
Co-authored-by: myd7349 <myd7349@gmail.com>
Co-authored-by: Michael Straube <michael.straube.d@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants