Skip to content

Commit 3d78451

Browse files
pre-commit-ci[bot]mne-botlarsoner
authored
[pre-commit.ci] pre-commit autoupdate (#13559)
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>
1 parent a365496 commit 3d78451

File tree

7 files changed

+23
-9
lines changed

7 files changed

+23
-9
lines changed

.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.14.9
4+
rev: v0.14.10
55
hooks:
66
- id: ruff-check
77
name: ruff lint mne
@@ -82,7 +82,7 @@ repos:
8282

8383
# zizmor
8484
- repo: https://github.com/woodruffw/zizmor-pre-commit
85-
rev: v1.18.0
85+
rev: v1.19.0
8686
hooks:
8787
- id: zizmor
8888
args: [--fix]

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ stages:
114114
- bash: |
115115
set -e
116116
python -m pip install --progress-bar off --upgrade pip
117-
python -m pip install --progress-bar off "mne-qt-browser[opengl] @ git+https://github.com/mne-tools/mne-qt-browser.git" pyvista scikit-learn python-picard qtpy nibabel sphinx-gallery "PySide6!=6.8.0,!=6.8.0.1,!=6.8.1.1,!=6.9.1" pandas neo pymatreader antio defusedxml curryreader
117+
python -m pip install --progress-bar off "mne-qt-browser[opengl] @ git+https://github.com/mne-tools/mne-qt-browser.git" "git+https://github.com/python-quantities/python-quantities" pyvista scikit-learn python-picard qtpy nibabel sphinx-gallery "PySide6!=6.8.0,!=6.8.0.1,!=6.8.1.1,!=6.9.1" pandas neo pymatreader antio defusedxml curryreader
118118
python -m pip uninstall -yq mne
119119
python -m pip install --progress-bar off --upgrade -e . --group=test
120120
displayName: 'Install dependencies with pip'
@@ -173,7 +173,7 @@ stages:
173173
python -m pip install --progress-bar off --upgrade pip
174174
python -m pip install --progress-bar off --upgrade --pre --only-binary=\"numpy,scipy,matplotlib,vtk\" numpy scipy matplotlib vtk
175175
python -c "import vtk"
176-
python -m pip install --progress-bar off --upgrade -ve .[full] --group=test_extra
176+
python -m pip install --progress-bar off --upgrade -ve .[full] --group=test_extra "git+https://github.com/python-quantities/python-quantities"
177177
displayName: 'Install dependencies with pip'
178178
- bash: |
179179
set -e

doc/sphinxext/related_software.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
"Home-page": "https://users.aalto.fi/~vanvlm1/posthoc/python",
5252
"Summary": "post-hoc modification of linear models",
5353
},
54+
# https://github.com/freesurfer/surfa/pull/66
55+
"surfa": {
56+
"Home-page": "https://github.com/freesurfer/surfa",
57+
"Summary": "Utilities for medical image and surface processing.",
58+
},
5459
# This package does not provide wheels, so don't force CircleCI to build it.
5560
# If it eventually provides binary wheels we could add it to
5661
# `tools/circleci_dependencies.sh` and remove from here.

mne/surface.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,15 @@ def query(self, rr):
803803

804804
def _call_pyvista(self, rr):
805805
pdata = _surface_to_polydata(dict(rr=rr))
806-
out = pdata.select_enclosed_points(self.pdata, check_surface=False)
807-
return out["SelectedPoints"].astype(bool)
806+
# TODO VERSION PyVista 0.47+
807+
if hasattr(pdata, "select_interior_points"):
808+
meth = pdata.select_interior_points
809+
key = "selected_points"
810+
else:
811+
meth = pdata.select_enclosed_points
812+
key = "SelectedPoints"
813+
out = meth(self.pdata, check_surface=False)
814+
return out[key].astype(bool)
808815

809816
def _call_old(self, rr, n_jobs):
810817
n_orig = len(rr)

mne/viz/tests/test_3d_mpl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_plot_volume_source_estimates_basic(
8686
want_str = f"({want_p[0]:0.1f}, {want_p[1]:0.1f}, {want_p[2]:0.1f}) mm"
8787
assert want_str in log, (want_str, init_p)
8888
for ax_idx in [0, 2, 3, 4]:
89-
_fake_click(fig, fig.axes[ax_idx], (0.3, 0.5))
89+
_fake_click(fig, fig.axes[ax_idx], (0.5, 0.5))
9090
_fake_keypress(fig, "left")
9191
_fake_keypress(fig, "shift+right")
9292
if bg_img is not None:

tools/azure_dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
set -eo pipefail
44
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
5-
STD_ARGS="--progress-bar off --upgrade"
5+
STD_ARGS="--progress-bar off --upgrade "
66
python -m pip install $STD_ARGS pip setuptools wheel
77
if [ "${TEST_MODE}" == "pip" ]; then
8-
python -m pip install $STD_ARGS --only-binary="numba,llvmlite,numpy,scipy,vtk,dipy,openmeeg" -e .[full] --group=test
8+
python -m pip install $STD_ARGS --only-binary="numba,llvmlite,numpy,scipy,vtk,dipy,openmeeg" -e .[full] --group=test git+https://github.com/python-quantities/python-quantities
99
elif [ "${TEST_MODE}" == "pip-pre" ]; then
1010
${SCRIPT_DIR}/install_pre_requirements.sh
1111
python -m pip install $STD_ARGS --pre -e . --group=test_extra

tools/github_actions_dependencies.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ else
3838
EXTRAS=""
3939
fi
4040
echo ""
41+
# until quantities releases...
42+
STD_ARGS="$STD_ARGS git+https://github.com/python-quantities/python-quantities"
4143

4244
echo "::group::Installing test dependencies using pip"
4345
set -x

0 commit comments

Comments
 (0)