Skip to content

Commit 8bc36ac

Browse files
committed
Merge remote-tracking branch 'upstream/main' into cnt-overflow-fix
* upstream/main: (83 commits) [pre-commit.ci] pre-commit autoupdate (mne-tools#13818) MAINT: Update dependency specifiers (mne-tools#13814) FIX: correct sensor name ordering in plot_topomap when using Info object (mne-tools#13686) ENH: Add support for plotting ICA source timecourses in Report.add_ica (mne-tools#13697) fixed some info fields in MEG interpolation across sensor types using… (mne-tools#13759) [dependabot]: Bump the actions group with 2 updates (mne-tools#13817) DOC: Fix type annotation for order parameter in Epochs.plot() (mne-tools#13639) Add pybispectra as related software (mne-tools#13812) ENH: Add initial BCI2000 .dat reader (preload-only) (mne-tools#13699) BUG: Fix bug with fwd.info["dev_head_t"] setting (mne-tools#13619) MAINT: Remove tomli, tomlsort, and ruff from `test` group (mne-tools#13809) MAINT: Make sys_info more robust (mne-tools#13810) ENH: Replace custom _whosmat_hdf5 with pymatreader.whosmat (mne-tools#13753) MAINT: Install SciPy pre (mne-tools#13807) ENH: add cmap parameter to Evoked.animate_topomap (mne-tools#13756) ENH: expose font_file in Brain.add_text (mne-tools#13778) Replacing abstractclassmethod with abstractmethod (mne-tools#13806) FIX: short-circuit n_jobs=None to n_jobs=1 without Parallel setup (mne-tools#13777) MAINT: Update code credit (mne-tools#13805) Fix top and bottom clipping in raw.plot() (mne-tools#13787) ...
2 parents 05c85cf + bf34675 commit 8bc36ac

320 files changed

Lines changed: 9374 additions & 981 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
- run: pip install --upgrade towncrier pygithub gitpython numpy
2222
- run: python ./.github/actions/rename_towncrier/rename_towncrier.py
2323
- run: python ./tools/dev/ensure_headers.py
24-
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
24+
- uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8

.github/workflows/credit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
set -xeo pipefail
3838
git config --global user.email "[email protected]"
3939
git config --global user.name "mne[bot]"
40-
BRANCH=credit/$GITHUB_RUN_ID
40+
BRANCH=credit/$(date '+%Y%m%d')
4141
git checkout -b $BRANCH
4242
git commit -am "mne[bot]: Update code credit"
4343
git push origin $BRANCH
44-
PR_NUM=$(gh pr create --base main --head $BRANCH --title "MAINT: Update code credit" --body "Created by credit [GitHub action](https://github.com/mne-tools/mne-python/actions/runs/${{ github.run_id }}). <br> <br> *Adjustments may need to be made to \`doc/changes/credit_tools.py\` or \`.mailmap\` etc. to get CircleCI to pass.*" --label "no-changelog-entry-needed")
44+
PR_NUM=$(gh pr create --base main --head $BRANCH --title "MAINT: Update code credit" --body "Created by credit [GitHub action](https://github.com/mne-tools/mne-python/actions/runs/${{ github.run_id }}). <br> <br> *Adjustments may need to be made to \`doc/sphinxext/credit_tools.py\` or \`.mailmap\` etc. to get CircleCI to pass.*" --label "no-changelog-entry-needed")
4545
echo "Opened https://github.com/mne-tools/mne-python/pull/${PR_NUM}" >> $GITHUB_STEP_SUMMARY
4646
if: steps.status.outputs.dirty == 'true'

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
pip install build twine
2929
- run: python -m build --sdist --wheel
3030
- run: twine check --strict dist/*
31-
- uses: actions/upload-artifact@v6
31+
- uses: actions/upload-artifact@v7
3232
with:
3333
name: dist
3434
path: dist
@@ -43,7 +43,7 @@ jobs:
4343
name: pypi
4444
url: https://pypi.org/p/mne
4545
steps:
46-
- uses: actions/download-artifact@v7
46+
- uses: actions/download-artifact@v8
4747
with:
4848
name: dist
4949
path: dist

.github/workflows/spec_zero.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,32 @@ jobs:
3737
fi
3838
- name: Setup Remote SSH Connection
3939
if: env.ENABLE_SSH == 'true'
40-
uses: mxschmitt/action-tmate@v3
40+
uses: Warpbuilds/action-[email protected]
4141
timeout-minutes: 10
4242
with:
4343
detached: true
44-
- uses: actions/setup-python@v6
44+
- uses: astral-sh/setup-uv@v7
4545
with:
46-
python-version: '3.12'
47-
- run: pip install packaging requests tomlkit
48-
- run: python tools/dev/spec_zero_update_versions.py
49-
- run: |
46+
version: ">=0.9"
47+
activate-environment: true
48+
python-version: 3.12
49+
- run: uv pip install packaging requests tomlkit
50+
- run: python ./tools/dev/spec_zero_update_versions.py
51+
- name: Create lockfile for old CI
52+
# uv pip compile requires setting the python version explicitly in the command :(
53+
run: |
54+
uv pip compile pyproject.toml --python "3.10" --python-platform "x86_64-unknown-linux-gnu" --group test --group lockfile_extras --resolution lowest-direct --format pylock.toml --output-file tools/pylock.ci-old.toml
55+
python tools/github_actions_check_old_lockfile.py
56+
- name: check if files changed
57+
run: |
5058
git diff && git status --porcelain
5159
if [[ $(git status --porcelain) ]]; then
5260
echo "dirty=true" >> $GITHUB_OUTPUT
5361
fi
5462
id: status
5563
- name: Run pre-commit hooks to update other files
5664
run: |
57-
pip install pre-commit
65+
uv pip install pre-commit
5866
pre-commit run --all || true
5967
if: steps.status.outputs.dirty == 'true'
6068
- name: Create PR

.github/workflows/tests.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
fi
108108
- name: Setup Remote SSH Connection
109109
if: env.ENABLE_SSH == 'true'
110-
uses: mxschmitt/action-tmate@v3
110+
uses: Warpbuilds/action-[email protected]
111111
timeout-minutes: 80
112112
with:
113113
detached: true
@@ -143,18 +143,27 @@ jobs:
143143
fi
144144
fi
145145
if: matrix.kind == 'conda' || matrix.kind == 'mamba'
146-
- uses: mamba-org/setup-micromamba@v2
146+
- uses: mamba-org/setup-micromamba@v3
147147
with:
148148
environment-file: ${{ env.CONDA_ENV }}
149149
environment-name: mne
150150
log-level: ${{ runner.debug == '1' && 'debug' || 'info' }}
151151
create-args: >-
152152
python=${{ env.PYTHON_VERSION }}
153153
-v
154-
if: ${{ !startswith(matrix.kind, 'pip') }}
154+
if: matrix.kind == 'conda' || matrix.kind == 'mamba'
155155
timeout-minutes: 20
156+
# Python (if old)
157+
- uses: astral-sh/setup-uv@v7
158+
with:
159+
version: ">=0.9"
160+
activate-environment: true
161+
cache-dependency-glob: |
162+
**/pylock.ci-old.toml
163+
python-version: ${{ matrix.python }}
164+
if: matrix.kind == 'old'
156165
- run: bash ./tools/github_actions_dependencies.sh
157-
- run: python ./tools/github_actions_check_old.py
166+
- run: python ./tools/github_actions_check_old_env.py
158167
if: matrix.kind == 'old'
159168
# Minimal commands on Linux (macOS stalls)
160169
- run: bash ./tools/get_minimal_commands.sh
@@ -173,7 +182,7 @@ jobs:
173182
path: ~/mne_data
174183
- run: bash ./tools/github_actions_download.sh
175184
- run: bash ./tools/github_actions_test.sh # for some reason on macOS we need to run "bash X" in order for a failed test run to show up
176-
- uses: codecov/codecov-action@v5
185+
- uses: codecov/codecov-action@v6
177186
with:
178187
token: ${{ secrets.CODECOV_TOKEN }}
179188
if: success() || failure()

.github/zizmor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ rules:
33
config:
44
policies:
55
"*": ref-pin
6+
secrets-outside-env:
7+
disable: true # TODO: Someday we should use envs for these

.mailmap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Andrew Dykstra <[email protected]>
2020
Andrew Quinn <[email protected]> AJQuinn <[email protected]>
2121
Andy Gilbert <[email protected]> Andrew Gilbert <[email protected]>
2222
Andy Gilbert <[email protected]> Andrew Gilbert <[email protected]>
23+
Aniket Singh Yadav <[email protected]> Aniket <[email protected]>
2324
2425
Anne-Sophie Dubarry <[email protected]> annesodub <[email protected]>
2526
Archit Singhal <[email protected]> archit singhal <[email protected]>
@@ -246,6 +247,7 @@ Matti Hämäläinen <[email protected]> Matti Hämäläinen <[email protected]
246247
Matti Hämäläinen <[email protected]> mshamalainen <[email protected]>
247248
Matti Toivonen <[email protected]> mattitoi <[email protected]>
248249
Maureen Shader <[email protected]> mshader <[email protected]>
250+
Melih Yayli <[email protected]>
249251
Michiru Kaneda <[email protected]> rcmdnk <[email protected]>
250252
Mikołaj Magnuski <[email protected]> Mikolaj Magnuski <[email protected]>
251253
Mikołaj Magnuski <[email protected]> mmagnuski <[email protected]>
@@ -256,6 +258,7 @@ Motofumi Fushimi <[email protected]> motofumi-f
256258
Natalie Klein <[email protected]> natalieklein <[email protected]>
257259
Nathalie Gayraud <[email protected]> Nathalie <[email protected]>
258260
Nathalie Gayraud <[email protected]> Nathalie <[email protected]>
261+
Natneal B <[email protected]>
259262
Naveen Srinivasan <[email protected]> Naveen <[email protected]>
260263
Nicolas Barascud <[email protected]> nbara <[email protected]>
261264
Nicolas Barascud <[email protected]> Nicolas Barascud <[email protected]>
@@ -288,6 +291,8 @@ Pierre-Antoine Bannier <[email protected]> Pierre-Antoine Bannier
288291
Pierre-Antoine Bannier <[email protected]> Pierre-Antoine Bannier <[email protected]>
289292
Pierre-Antoine Bannier <[email protected]> Pierre-Antoine Bannier <[email protected]>
290293
Ping-Keng Jao <[email protected]> nafraw <[email protected]>
294+
Pragnya Khandelwal <[email protected]> Pragnya <[email protected]>
295+
Pragnya Khandelwal <[email protected]> PragnyaKhandelwal <[email protected]>
291296
Praveen Sripad <[email protected]> prav <prav@prav-dell.(none)>
292297
Praveen Sripad <[email protected]> prav <[email protected]>
293298
@@ -359,6 +364,7 @@ Tziona NessAiver <[email protected]> TzionaN <[email protected]>
359364
user27182 <[email protected]>
360365
Valerii Chirkov <[email protected]> Valerii <[email protected]>
361366
Valerii Chirkov <[email protected]> Valerii <[email protected]>
367+
varshaa-1616 <[email protected]>
362368
Velu Prabhakar Kumaravel <[email protected]> Velu Prabhakar Kumaravel <[email protected]>
363369
Victoria Peterson <[email protected]> vpeterson <[email protected]>
364370

.pre-commit-config.yaml

Lines changed: 4 additions & 4 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.14
4+
rev: v0.15.9
55
hooks:
66
- id: ruff-check
77
name: ruff lint mne
@@ -23,7 +23,7 @@ repos:
2323

2424
# Codespell
2525
- repo: https://github.com/codespell-project/codespell
26-
rev: v2.4.1
26+
rev: v2.4.2
2727
hooks:
2828
- id: codespell
2929
additional_dependencies:
@@ -58,7 +58,7 @@ repos:
5858
args: ["--ignore-case"]
5959

6060
- repo: https://github.com/pappasam/toml-sort
61-
rev: v0.24.3
61+
rev: v0.24.4
6262
hooks:
6363
- id: toml-sort-fix
6464
files: pyproject.toml
@@ -82,7 +82,7 @@ repos:
8282

8383
# zizmor
8484
- repo: https://github.com/woodruffw/zizmor-pre-commit
85-
rev: v1.22.0
85+
rev: v1.23.1
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" "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 pymef
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 pymef
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 "git+https://github.com/python-quantities/python-quantities"
176+
python -m pip install --progress-bar off --upgrade -ve .[full] --group=test_extra
177177
displayName: 'Install dependencies with pip'
178178
- bash: |
179179
set -e

doc/_includes/bem_model.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Using the watershed algorithm
1717

1818
The watershed algorithm [Segonne *et al.*,
1919
2004] is part of the FreeSurfer software.
20-
The name of the program is ``mri_watershed``.
20+
The name of the program is mri_watershed_.
2121
Its use in the MNE environment is facilitated by the script
2222
:ref:`mne watershed_bem`.
2323

0 commit comments

Comments
 (0)