10000 Merge remote-tracking branch 'upstream/main' into cola5 · larsoner/mne-python@46c193d · GitHub
[go: up one dir, main page]

Skip to content

Commit 46c193d

Browse files
committed
Merge remote-tracking branch 'upstream/main' into cola5
* upstream/main: (57 commits) Allow lasso selection sensors in a plot_evoked_topo (mne-tools#12071) MAINT: Fix doc build (mne-tools#13076) BUG: Improve sklearn compliance (mne-tools#13065) [pre-commit.ci] pre-commit autoupdate (mne-tools#13073) MAINT: Add Numba to 3.13 test (mne-tools#13075) Bump autofix-ci/action from ff86a557419858bb967097bfc916833f5647fa8c to 551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef in the actions group (mne-tools#13071) [BUG] Correct annotation onset for exportation to EDF and EEGLAB (mne-tools#12656) New feature for removing heart artifacts from EEG or ESG data using a Principal Component Analysis - Optimal Basis Sets (PCA-OBS) algorithm (mne-tools#13037) [BUG] Fix taper weighting in computation of TFR multitaper power (mne-tools#13067) [FIX] Reading an EDF with preload=False and mixed frequency (mne-tools#13069) Fix evoked topomap colorbars, closes mne-tools#13050 (mne-tools#13063) [pre-commit.ci] pre-commit autoupdate (mne-tools#13060) BUG: Fix bug with interval calculation (mne-tools#13062) [DOC] extend documentation for add_channels (mne-tools#13051) Add `combine_tfr` to API (mne-tools#13054) Add `combine_spectrum()` function and allow `grand_average()` to support `Spectrum` data (mne-tools#13058) BUG: Fix bug with helium anon (mne-tools#13056) [ENH] Add option to store and return TFR taper weights (mne-tools#12910) BUG: viz plot window's 'title' argument showed no effect. (mne-tools#12828) MAINT: Ensure limited set of tests are skipped (mne-tools#13053) ...
2 parents 0adefdf + aca4965 commit 46c193d

File tree

334 files changed

+5435
-1964
lines changed

Some content is hidden

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

334 files changed

+5435
-1964
lines changed

.circleci/config.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ jobs:
218218
- restore_cache:
219219
keys:
220220
- data-cache-phantom-kit
221+
- restore_cache:
222+
keys:
223+
- data-cache-ds004388
221224
- run:
222225
name: Get data
223226
# This limit could be increased, but this is helpful for finding slow ones
@@ -252,7 +255,7 @@ jobs:
252255
name: Check sphinx log for warnings (which are treated as errors)
253256
when: always
254257
command: |
255-
! grep "^.* WARNING: .*$" sphinx_log.txt
258+
! grep "^.*\(WARNING\|ERROR\): " sphinx_log.txt
256259
- run:
257260
name: Show profiling output
258261
when: always
@@ -393,6 +396,10 @@ jobs:
393396
key: data-cache-phantom-kit
394397
paths:
395398
- ~/mne_data/MNE-phantom-KIT-data # (1 G)
399+
- save_cache:
400+
key: data-cache-ds004388
401+
paths:
402+
- ~/mne_data/ds004388 # (1.8 G)
396403

397404

398405
linkcheck:

.github/workflows/autofix.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16+
with:
17+
persist-credentials: false
1618
- uses: actions/setup-python@v5
1719
with:
1820
python-version: '3.12'
1921
- run: pip install --upgrade towncrier pygithub gitpython numpy
2022
- run: python ./.github/actions/rename_towncrier/rename_towncrier.py
2123
- run: python ./tools/dev/ensure_headers.py
22-
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
24+
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef

.github/workflows/automerge.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Bot auto-merge
2+
on: pull_request # yamllint disable-line rule:truthy
3+
4+
jobs:
5+
autobot:
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
runs-on: ubuntu-latest
10+
# Names can be found with gh api /repos/mne-tools/mne-python/pulls/12998 -q .user.login for example
11+
if: (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]' || github.event.pull_request.user.login == 'github-actions[bot]') && github.repository == 'mne-tools/mne-python'
12+
steps:
13+
- name: Enable auto-merge for bot PRs
14+
run: gh pr merge --auto --squash "$PR_URL"
15+
env:
16+
PR_URL: ${{github.event.pull_request.html_url}}
17+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/check_changelog.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: # yamllint disable-line rule:truthy
55
types: [opened, synchronize, labeled, unlabeled]
66
branches: ["main"]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
changelog_checker:
1013
name: Check towncrier entry in doc/changes/devel/

.github/workflows/circle_artifacts.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
on: [status] # yamllint disable-line rule:truthy
2+
permissions:
3+
contents: read
4+
statuses: write
25
jobs:
36
circleci_artifacts_redirector_job:
47
if: "${{ startsWith(github.event.context, 'ci/circleci: build_docs') }}"

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
steps:
4040
- name: Checkout repository
4141
uses: actions/checkout@v4
42+
with:
43+
persist-credentials: false
4244

4345
# Initializes the CodeQL tools for scanning.
4446
- name: Initialize CodeQL
@@ -48,11 +50,11 @@ jobs:
4850
# If you wish to specify custom queries, you can do so here or in a config file.
4951
# By default, queries listed here will override any specified in a config file.
5052
# Prefix the list here with "+" to use these queries and those in the config file.
51-
53+
5254
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
5355
# queries: security-extended,security-and-quality
5456

55-
57+
5658
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5759
# If this step fails, then you should remove it and run the build manually (see below)
5860
- name: Autobuild
@@ -61,7 +63,7 @@ jobs:
6163
# ℹ️ Command-line programs to run using the OS shell.
6264
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6365

64-
# If the Autobuild fails above, remove it and uncomment the following three lines.
66+
# If the Autobuild fails above, remove it and uncomment the following three lines.
6567
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6668

6769
# - run: |

.github/workflows/credit.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@ on: # yamllint disable-line rule:truthy
66
- cron: '0 0 1 * *' # At 00:00 on day-of-month 1
77
workflow_dispatch:
88

9-
permissions:
10-
contents: write
11-
pull-requests: write
12-
139
jobs:
1410
update_credit:
11+
permissions:
12+
contents: write
13+
pull-requests: write
1514
name: Update
1615
runs-on: ubuntu-latest
1716
env:
1817
GH_TOKEN: ${{ github.token }}
1918
GITHUB_TOKEN: ${{ github.token }}
2019
steps:
2120
- uses: actions/checkout@v4
21+
with:
22+
persist-credentials: true
2223
- uses: actions/setup-python@v5
2324
with:
2425
python-version: '3.12'
@@ -37,8 +38,8 @@ jobs:
3738
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
3839
git config --global user.name "github-actions[bot]"
3940
git checkout -b credit
40-
git commit -am "MAINT: Update code credit [ci skip]"
41+
git commit -am "MAINT: Update code credit"
4142
git push origin credit
42-
PR_NUM=$(gh pr create --base main --head credit --title "MAINT: Update code credit" --body "Created by \"${{ github.workflow }}\" GitHub action." --label "no-changelog-entry-needed")
43+
PR_NUM=$(gh pr create --base main --head credit --title "MAINT: Update code credit" --body "Created by credit [GitHub action](https://github.com/mne-tools/mne-python/actions/runs/${{ github.run_id }})." --label "no-changelog-entry-needed")
4344
echo "Opened https://github.com/mne-tools/mne-python/pull/${PR_NUM}" >> $GITHUB_STEP_SUMMARY
4445
if: steps.status.outputs.dirty == 'true'

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20+
with:
21+
persist-credentials: false
2022
- uses: actions/setup-python@v5
2123
with:
2224
python-version: '3.10'

.github/workflows/tests.yml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
timeout-minutes: 3
1919
steps:
2020
- uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
2123
- uses: actions/setup-python@v5
2224
with:
2325
python-version: '3.12'
@@ -56,6 +58,9 @@ jobs:
5658
fail-fast: false
5759
matrix:
5860
include:
61+
- os: ubuntu-latest
62+
python: '3.13'
63+
kind: pip
5964
- os: ubuntu-latest
6065
python: '3.12'
6166
kind: pip-pre
@@ -81,44 +86,44 @@ jobs:
8186
- uses: actions/checkout@v4
8287
with:
8388
fetch-depth: 0
89+
persist-credentials: false
8490
- run: ./tools/github_actions_env_vars.sh
8591
# Xvfb/OpenGL
8692
- uses: pyvista/setup-headless-display-action@v3
8793
with:
8894
qt: true
8995
pyvista: false
96+
wm: false
9097
# Python (if pip)
9198
- uses: actions/setup-python@v5
9299
with:
93100
python-version: ${{ matrix.python }}
94101
if: startswith(matrix.kind, 'pip')
95102
# Python (if conda)
96-
- name: Remove numba and dipy
97-
run: | # TODO: Remove when numba 0.59 and dipy 1.8 land on conda-forge
98-
sed -i '/numba/d' environment.yml
99-
sed -i '/dipy/d' environment.yml
100-
sed -i 's/- mne$/- mne-base/' environment.yml
101-
if: matrix.os == 'ubuntu-latest' && startswith(matrix.kind, 'conda') && matrix.python == '3.12'
103+
- name: Fixes for conda
104+
run: |
105+
# For some reason on Linux we get crashes
106+
if [[ "$RUNNER_OS" == "Linux" ]]; then
107+
sed -i "/numba/d" environment.yml
108+
elif [[ "$RUNNER_OS" == "macOS" ]]; then
109+
sed -i "" "s/ - PySide6 .*/ - PySide6 <6.8/g" environment.yml
110+
fi
111+
if: matrix.kind == 'conda' || matrix.kind == 'mamba'
102112
- uses: mamba-org/setup-micromamba@v2
103113
with:
104114
environment-file: ${{ env.CONDA_ENV }}
105115
environment-name: mne
106116
create-args: >-
107117
python=${{ env.PYTHON_VERSION }}
108-
mamba
109-
nomkl
110118
if: ${{ !startswith(matrix.kind, 'pip') }}
111-
# Make sure we have the right Python
112-
- run: python -c "import platform; assert platform.machine() == 'arm64', platform.machine()"
113-
if: matrix.os == 'macos-14'
114-
- run: ./tools/github_actions_dependencies.sh
119+
- run: bash ./tools/github_actions_dependencies.sh
115120
# Minimal commands on Linux (macOS stalls)
116-
- run: ./tools/get_minimal_commands.sh
117-
if: ${{ startswith(matrix.os, 'ubuntu') }}
118-
- run: ./tools/github_actions_infos.sh
121+
- run: bash ./tools/get_minimal_commands.sh
122+
if: startswith(matrix.os, 'ubuntu') && matrix.kind != 'minimal' && matrix.kind != 'old'
123+
- run: bash ./tools/github_actions_infos.sh
119124
# Check Qt
120-
- run: ./tools/check_qt_import.sh $MNE_QT_BACKEND
121-
if: ${{ env.MNE_QT_BACKEND != '' }}
125+
- run: bash ./tools/check_qt_import.sh $MNE_QT_BACKEND
126+
if: env.MNE_QT_BACKEND != ''
122127
- name: Run tests with no testing data
123128
run: MNE_SKIP_TESTING_DATASET_TESTS=true pytest -m "not (ultraslowtest or pgtest)" --tb=short --cov=mne --cov-report xml -vv -rfE mne/
124129
if: matrix.kind == 'minimal'
@@ -127,8 +132,8 @@ jobs:
127132
with:
128133
key: ${{ env.TESTING_VERSION }}
129134
path: ~/mne_data
130-
- run: ./tools/github_actions_download.sh
131-
- run: ./tools/github_actions_test.sh
135+
- run: bash ./tools/github_actions_download.sh
136+
- 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
132137
- uses: codecov/codecov-action@v5
133138
with:
134139
token: ${{ secrets.CODECOV_TOKEN }}

.mailmap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Adam Li <adam2392@gmail.com> Adam Li <adam2392@Adams-MBP-2.home>
22
Adam Li <adam2392@gmail.com> Adam Li <adam2392@new-host-2.home>
33
Alan Leggitt <leggitta3@gmail.com> leggitta <leggitta3@gmail.com>
44
Alessandro Tonin <alessandro.tonin@wysscenter.ch> Lychfindel <58313635+Lychfindel@users.noreply.github.com>
5+
Alex Lepauvre <alex.lepauvre@ae.mpg.de> Alex lepauvre <alex.lepauvre@ae.mpg.de>
56
Alex Rockhill <aprockhill206@gmail.com> Alex <aprockhill206@gmail.com>
67
Alex Rockhill <aprockhill206@gmail.com> Alex <aprockhill@mailbox.org>
78
Alex Rockhill <aprockhill206@gmail.com> Alex Rockhill <aprock@uw.edu>
@@ -356,4 +357,4 @@ Yousra Bekhti <yousra.bekhti@gmail.com> Yousra BEKHTI <yousra.bekhti@gmail.com>
356357
Yousra Bekhti <yousra.bekhti@gmail.com> yousrabk <yousra.bekhti@gmail.com>
357358
Zhi Zhang <850734033@qq.com> ZHANG Zhi <850734033@qq.com>
358359
Zhi Zhang <850734033@qq.com> ZHANG Zhi <zhi271.zhang@connect.polyu.hk>
359-
Ziyi ZENG <ziyizeng@link.cuhk.edu.cn>
360+
Ziyi ZENG <ziyizeng@link.cuhk.edu.cn> ZIYI ZENG <CME1909120@XMU.EDU.MY>

0 commit comments

Comments
 (0)
0