Skip to content

test_set_montage_artinis_basic fails on Python 3.14 #13577

Closed

Description

@sarahec

Description of the problem

Test failure while building on Python 3.14 (Darwin and Linux).

Steps to reproduce

n/a

Link to data

No response

Expected results

The test should pass (it's fine on Python 3.13)

Actual results

________________________ test_set_montage_artinis_basic ________________________
mne/channels/tests/test_standard_montage.py:296: in test_set_montage_artinis_basic
    raw.set_montage("artinis-brite23")
<decorator-gen-22>:12: in set_montage
    ???
mne/_fiff/meas_info.py:429: in set_montage
    _set_montage(info, montage, match_case, match_alias, on_missing)
mne/channels/montage.py:1407: in _set_montage
    _set_montage_fnirs(info, mnt_head)
mne/channels/montage.py:1166: in _set_montage_fnirs
    source_pos = montage.dig[montage.ch_names.index(source) + num_ficiduals]["r"]
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   ValueError: list.index(x): x not in list

During handling of the above exception, another exception occurred:
mne/channels/tests/test_standard_montage.py:295: in test_set_montage_artinis_basic
    with pytest.raises(ValueError, match="is not in list"):

Additional information

nixos/nix-darwin
nixpkgs-unstable branch

Activity

  1. welcome commented on Jan 6, 2026

    @welcome

    Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴

  2. larsoner commented on Jan 7, 2026

    @larsoner
    Member

    Makes sense! Working on a fix now. Once it's in can you use a pinned version of main from GitHub or would it help for us to cut a 1.11.1?

  3. drammock commented on Jan 7, 2026

    @drammock
    Member

    This is pretty clearly just an error message change from py 3.13 to 3.14:

    $ uv venv --python 3.14
    Using CPython 3.14.2
    Creating virtual environment at: .venv
    Activate with: source .venv/bin/activate
    $ source .venv/bin/activate
    (foo) $ python -c "[1,2,3].index(4)"
    Traceback (most recent call last):
      File "<python-input-0>", line 1, in <module>
        [1,2,3].index(4)
        ~~~~~~~~~~~~~^^^
    ValueError: list.index(x): x not in list
    (foo) $ deactivate
    $ rm -r .venv
    $ uv venv --python 3.13
    Using CPython 3.13.1
    Creating virtual environment at: .venv
    Activate with: source .venv/bin/activate
    $ source .venv/bin/activate
    (foo) $ python -c "[1,2,3].index(4)"
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
        [1,2,3].index(4)
        ~~~~~~~~~~~~~^^^
    ValueError: 4 is not in list
    
  4. sarahec commented on Jan 9, 2026

    @sarahec
    Author

    Makes sense! Working on a fix now. Once it's in can you use a pinned version of main from GitHub or would it help for us to cut a 1.11.1?

    We can go either way. We'll probably wait for your next regular release and pick it up then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions