8000 Merge branch 'main' into add_tfr_weights · tsbinns/mne-python@514258d · GitHub
[go: up one dir, main page]

Skip to content

Commit 514258d

Browse files
authored
Merge branch 'main' into add_tfr_weights
2 parents e5eedee + 47ea360 commit 514258d

File tree

24 files changed

+117
-124
lines changed

24 files changed

+117
-124
lines changed

‎.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ jobs:
252252
name: Check sphinx log for warnings (which are treated as errors)
253253
when: always
254254
command: |
255-
! grep "^.* WARNING: .*$" sphinx_log.txt
255+
! grep "^.* (WARNING|ERROR): .*$" sphinx_log.txt
256256
- run:
257257
name: Show profiling output
258258
when: always

‎.github/workflows/tests.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,24 +99,22 @@ jobs:
9999
python-version: ${{ matrix.python }}
100100
if: startswith(matrix.kind, 'pip')
101101
# Python (if conda)
102-
- name: Remove numba and dipy
103-
run: | # TODO: Remove when numba 0.59 and dipy 1.8 land on conda-forge
104-
sed -i '/numba/d' environment.yml
105-
sed -i '/dipy/d' environment.yml
106-
sed -i 's/- mne$/- mne-base/' environment.yml
107-
if: matrix.os == 'ubuntu-latest' && startswith(matrix.kind, 'conda') && matrix.python == '3.12'
102+
- name: Fixes for conda
103+
run: |
104+
# For some reason on Linux we get crashes
105+
if [[ "$RUNNER_OS" == "Linux" ]]; then
106+
sed -i "/numba/d" environment.yml
107+
elif [[ "$RUNNER_OS" == "macOS" ]]; then
108+
sed -i "" "s/ - PySide6 .*/ - PySide6 <6.8/g" environment.yml
109+
fi
110+
if: matrix.kind == 'conda' || matrix.kind == 'mamba'
108111
- uses: mamba-org/setup-micromamba@v2
109112
with:
110113
environment-file: ${{ env.CONDA_ENV }}
111114
environment-name: mne
112115
create-args: >-
113116
python=${{ env.PYTHON_VERSION }}
114-
mamba
115-
nomkl
116117
if: ${{ !startswith(matrix.kind, 'pip') }}
117-
# Make sure we have the right Python
118-
- run: python -c "import platform; assert platform.machine() == 'arm64', platform.machine()"
119-
if: matrix.os == 'macos-14'
120118
- run: ./tools/github_actions_dependencies.sh
121119
# Minimal commands on Linux (macOS stalls)
122120
- run: ./tools/get_minimal_commands.sh

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

8383
# zizmor
8484
- repo: https://github.com/woodruffw/zizmor-pre-commit
85-
rev: v0.10.0
85+
rev: v1.0.0
8686
hooks:
8787
- id: zizmor
8888

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix input boxes for the max value not showing when plotting fieldlines with :func:`~mne.viz.plot_evoked_field` when ``show_density=False``, by `Marijn van Vliet`_.

‎doc/changes/v1.7.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ Bugfixes
7575
- Fix validation of ``ch_type`` in :func:`mne.preprocessing.annotate_muscle_zscore`, by `Mathieu Scheltienne`_. (`#12444 <https://github.com/mne-tools/mne-python/pull/12444>`__)
7676
- Fix errant redundant use of ``BIDSPath.split`` when writing split raw and epochs data, by `Eric Larson`_. (`#12451 <https://github.com/mne-tools/mne-python/pull/12451>`__)
7777
- Disable config parser interpolation when reading BrainVision files, which allows using the percent sign as a regular character in channel units, by `Clemens Brunner`_. (`#12456 <https://github.com/mne-tools/mne-python/pull/12456>`__)
78-
- - Fix the default color of :meth:`mne.viz.Brain.add_text` to properly contrast with the figure background color, by `Marijn van Vliet`_. (`#12470 <https://github.com/mne-tools/mne-python/pull/12470>`__)
79-
- - Changed default ECoG and sEEG electrode sizes in brain plots to better reflect real world sizes, by `Liberty Hamilton`_ (`#12474 <https://github.com/mne-tools/mne-python/pull/12474>`__)
78+
- Fix the default color of :meth:`mne.viz.Brain.add_text` to properly contrast with the figure background color, by `Marijn van Vliet`_. (`#12470 <https://github.com/mne-tools/mne-python/pull/12470>`__)
79+
- Changed default ECoG and sEEG electrode sizes in brain plots to better reflect real world sizes, by `Liberty Hamilton`_ (`#12474 <https://github.com/mne-tools/mne-python/pull/12474>`__)
8080
- Fixed bugs with handling of rank in :class:`mne.decoding.CSP`, by `Eric Larson`_. (`#12476 <https://github.com/mne-tools/mne-python/pull/12476>`__)
81-
- - Fix reading segmented recordings with :func:`mne.io.read_raw_eyelink` by `Dominik Welke`_. (`#12481 <https://github.com/mne-tools/mne-python/pull/12481>`__)
81+
- Fix reading segmented recordings with :func:`mne.io.read_raw_eyelink` by `Dominik Welke`_. (`#12481 <https://github.com/mne-tools/mne-python/pull/12481>`__)
8282
- Improve compatibility with other Qt-based GUIs by handling theme icons better, by `Eric Larson`_. (`#12483 <https://github.com/mne-tools/mne-python/pull/12483>`__)
83-
- - Fix problem caused by onsets with NaN values using :func:`mne.io.read_raw_eeglab` by `Jacob Woessner`_ (`#12484 <https://github.com/mne-tools/mne-python/pull/12484>`__)
83+
- Fix problem caused by onsets with NaN values using :func:`mne.io.read_raw_eeglab` by `Jacob Woessner`_ (`#12484 <https://github.com/mne-tools/mne-python/pull/12484>`__)
8484
- Fix cleaning of channel names for non vectorview or CTF dataset including whitespaces or dash in their channel names, by `Mathieu Scheltienne`_. (`#12489 <https://github.com/mne-tools/mne-python/pull/12489>`__)
8585
- Fix bug with :meth:`mne.preprocessing.ICA.plot_sources` for ``evoked`` data where the
8686
legend contained too many entries, by `Eric Larson`_. (`#12498 <https://github.com/mne-tools/mne-python/pull/12498>`__)

‎doc/changes/v1.9.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
.. _changes_1_9_0:
22

3-
1.9.0 (2024-12-18)
4-
==================
3+
Version 1.9.0 (2024-12-18)
4+
==========================
55

66
Dependencies
77
------------
88

9-
- - Minimum supported dependencies were updated in accordance with SPEC0_, most notably Python 3.10+ is now required. (`#12798 <https://github.com/mne-tools/mne-python/pull/12798>`__)
9+
- Minimum supported dependencies were updated in accordance with SPEC0_, most notably Python 3.10+ is now required. (`#12798 <https://github.com/mne-tools/mne-python/pull/12798>`__)
1010
- Importing from ``mne.decoding`` now explicitly requires ``scikit-learn`` to be installed,
1111
by `Eric Larson`_. (`#12834 <https://github.com/mne-tools/mne-python/pull/12834>`__)
1212
- Compatibility improved for Python 3.13, by `Eric Larson`_. (`#13021 <https://github.com/mne-tools/mne-python/pull/13021>`__)
@@ -63,7 +63,7 @@ New features
6363
- Add option to :func:`mne.preprocessing.fix_stim_artifact` to use baseline average to flatten TMS pulse artifact by `Fahimeh Mamashli`_ and `Padma Sundaram`_ and `Mohammad Daneshzand`_. (`#6915 <https://github.com/mne-tools/mne-python/pull/6915>`__)
6464
- Add support for `dict` type argument ``ref_channels`` to :func:`mne.set_eeg_reference`, to allow flexible re-referencing (e.g. ``raw.set_eeg_reference(ref_channels={'A1': ['A2', 'A3']})`` will set the new A1 data to be ``A1 - mean(A2, A3)``), by `Alex Lepauvre`_ and `Qian Chu`_ and `Daniel McCloy`_. (`#12366 <https://github.com/mne-tools/mne-python/pull/12366>`__)
6565
- Add reader for ANT Neuro files in the ``*.cnt`` format with :func:`~mne.io.read_raw_ant`, by `Mathieu Scheltienne`_, `Eric Larson`_ and `Proloy Das`_. (`#12792 <https://github.com/mne-tools/mne-python/pull/12792>`__)
66-
- - Add support for a :class:`mne.transforms.Transform` in the argument ``trans`` of the coregistration GUI called with :func:`mne.gui.coregistration`, by `Mathieu Scheltienne`_. (`#12801 <https://github.com/mne-tools/mne-python/pull/12801>`__)
66+
- Add support for a :class:`mne.transforms.Transform` in the argument ``trans`` of the coregistration GUI called with :func:`mne.gui.coregistration`, by `Mathieu Scheltienne`_. (`#12801 <https://github.com/mne-tools/mne-python/pull/12801>`__)
6767
- :meth:`~mne.io.Raw` and :meth:`~mne.Epochs.save` now return the path to the saved file(s), by `Victor Ferat`_. (`#12811 <https://github.com/mne-tools/mne-python/pull/12811>`__)
6868
- :func:`mne.channels.read_custom_montage` may now read a newer version of the ``.elc`` ASA Electrode file format, by `Stefan Appelhoff`_. (`#12830 <https://github.com/mne-tools/mne-python/pull/12830>`__)
6969
- Added the ``title`` argument to :func:`mne.viz.create_3d_figure`, and

‎doc/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,10 @@ def fix_sklearn_inherited_docstrings(app, what, name, obj, options, lines):
666666
r"https://scholar.google.com/scholar\?cites=12188330066413208874&as_ylo=2014",
667667
r"https://scholar.google.com/scholar\?cites=1521584321377182930&as_ylo=2013",
668668
"https://www.research.chop.edu/imaging",
669+
"http://prdownloads.sourceforge.net/optipng/optipng-0.7.8-win64.zip?download",
670+
"https://sourceforge.net/projects/aespa/files/",
671+
"https://sourceforge.net/projects/ezwinports/files/",
672+
"https://www.mathworks.com/products/compiler/matlab-runtime.html",
669673
# 500 server error
670674
"https://openwetware.org/wiki/Beauchamp:FreeSurfer",
671675
# 503 Server error
@@ -688,6 +692,7 @@ def fix_sklearn_inherited_docstrings(app, what, name, obj, options, lines):
688692
# SSL problems sometimes
689693
"http://ilabs.washington.edu",
690694
"https://psychophysiology.cpmc.columbia.edu",
695+
"https://erc.easme-web.eu",
691696
]
692697
linkcheck_anchors = False # saves a bit of time
693698
linkcheck_timeout = 15 < 179B span class=pl-c># some can be quite slow

‎doc/development/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,6 @@ it can serve as a useful example of what to expect from the PR review process.
11141114
.. optipng
11151115
11161116
.. _optipng: http://optipng.sourceforge.net/
1117-
.. _optipng for Windows: http://prdownloads.sourceforge.net/optipng/optipng-0.7.7-win32.zip?download
1117+
.. _optipng for Windows: http://prdownloads.sourceforge.net/optipng/optipng-0.7.8-win64.zip?download
11181118

11191119
.. include:: ../links.inc

‎doc/install/installers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Platform-specific installers
8686

8787
.. We have to use a button-link here because button-ref doesn't properly nested parse the inline code
8888
89-
.. button-link:: ./ides.html
89+
.. button-link:: ides.html
9090
:ref-type: ref
9191
:color: success
9292
:shadow:

‎environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ dependencies:
2323
- joblib
2424
- jupyter
2525
- lazy_loader >=0.3
26+
- mamba
2627
- matplotlib >=3.7
2728
- mffpy >=0.5.7
2829
- mne-qt-browser
2930
- nibabel
3031
- nilearn
32+
- nomkl
3133
- numba
3234
- numpy >=1.25,<3
3335
- openmeeg >=2.5.5

0 commit comments

Comments
 2FB0  (0)
0