Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
# Ruff mne
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.2
rev: v0.13.3
hooks:
- id: ruff-check
name: ruff lint mne
Expand Down
2 changes: 1 addition & 1 deletion mne/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def pytest_configure(config: pytest.Config):
# pyvista <-> NumPy 2.0
ignore:__array_wrap__ must accept context and return_scalar arguments.*:DeprecationWarning
# pyvista <-> VTK dev
ignore:Call to deprecated method GetInputAsDataSet.*:DeprecationWarning
ignore:Call to deprecated method Get.*:DeprecationWarning
# nibabel <-> NumPy 2.0
ignore:__array__ implementation doesn't accept a copy.*:DeprecationWarning
# quantities via neo
Expand Down
7 changes: 7 additions & 0 deletions mne/preprocessing/tests/test_maxwell.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ def test_multipolar_bases():
assert_allclose(S_tot, S_tot_fast * flips, atol=1e-16)


# This is also slow, but we probably want it running on all OSes
@testing.requires_testing_data
def test_basic():
"""Test Maxwell filter basic version."""
Expand Down Expand Up @@ -755,6 +756,7 @@ def test_spatiotemporal():
maxwell_filter(raw, st_duration=10.0, st_correlation=0.0)


@pytest.mark.slowtest
@buggy_mkl_svd
@testing.requires_testing_data
def test_st_overlap():
Expand Down Expand Up @@ -949,6 +951,7 @@ def _check_reg_match(sss_py, sss_mf, comp_tol):
)


@pytest.mark.slowtest
@testing.requires_testing_data
def test_cross_talk(tmp_path):
"""Test Maxwell filter cross-talk cancellation."""
Expand Down Expand Up @@ -1077,6 +1080,7 @@ def _assert_shielding(raw_sss, erm_power, min_factor, max_factor=np.inf, meg="ma
)


@pytest.mark.slowtest
@buggy_mkl_svd
@testing.requires_testing_data
@pytest.mark.parametrize("regularize", ("in", None))
Expand Down Expand Up @@ -1560,6 +1564,7 @@ def test_MGH_cross_talk():
assert len(py_ctc) > 0


@pytest.mark.slowtest
@testing.requires_testing_data
def test_mf_skips():
"""Test processing of data with skips."""
Expand Down Expand Up @@ -1607,6 +1612,7 @@ def test_mf_skips():
assert_allclose(data_sc, data_cs, atol=1e-20)


@pytest.mark.slowtest
@testing.requires_testing_data
@pytest.mark.parametrize(
(
Expand Down Expand Up @@ -1826,6 +1832,7 @@ def test_find_bad_channels_maxwell(
assert bads == set(want_bads)


@pytest.mark.slowtest
def test_find_bads_maxwell_flat():
"""Test find_bads_maxwell when there are flat channels."""
# See gh-9479
Expand Down
8 changes: 7 additions & 1 deletion tools/install_pre_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ echo "::endgroup::"
# No Numba because it forces an old NumPy version

echo "::group::VTK"
python -m pip install $STD_ARGS --only-binary ":all:" --extra-index-url "https://wheels.vtk.org" vtk
if [[ "$PLATFORM" == "Linux" ]]; then
# Segfault trying to load libx11.so.6
VTK_ARGS=""
else
VTK_ARGS="--extra-index-url \"https://wheels.vtk.org\""
fi
python -m pip install $STD_ARGS --only-binary ":all:" vtk $VTK_ARGS
python -c "import vtk"
echo "::endgroup::"

Expand Down