Skip to content

test_set_montage_artinis_basic fails on Python 3.14 #13577

@sarahec

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

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