FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Pin zero_mean in conn_spec's TF decomposition; test CI on Python 3.10… by brovelli · Pull Request #70 · brainets/frites · GitHub

Pin zero_mean in conn_spec's TF decomposition; test CI on Python 3.10… - #70

Merged
brovelli merged 3 commits into
masterfrom
fix/mne-compat
Sep 18, 2026
Merged

brovelli merged 3 commits into
masterfrom
fix/mne-compat

Conversation

Copy link
Copy Markdown
Member

…-3.12

  • _tf_decomp: mne changed the default of zero_mean in tfr_array_morlet / tfr_array_multitaper from False (<=1.5) to True, so conn_spec results silently depended on the installed mne version. Set zero_mean=False explicitly (user values in kw_cwt / kw_mt take precedence) and pin it in the conn_spec reference tests as well.
  • CI: Python matrix 3.8/3.9 -> 3.10/3.11/3.12 (mne >= 1.13 requires Python >= 3.11), flake / doc jobs on 3.11, classifiers updated.
  • What's new: conn_spec fixes from PR Fix conn_spec multitaper estimator, hanning kernel and complex sxy ou… #69 and the Python / mne range.

Verified with the full test suite at both ends of the supported range: Python 3.10 + mne 1.5.0 and Python 3.12 + mne 1.13.2 + numpy 2.5.3.

Thanks for contributing a pull request!

Please be aware that we are a loose team of volunteers so patience is
necessary. Assistance handling other issues is very welcome. We value
all user contributions, no matter how minor they are. If we are slow to
review, either the pull request needs some benchmarking, tinkering,
convincing, etc. or more likely the reviewers are simply busy. In either
case, we ask for your understanding during the review process.

Again, thanks for contributing!

Reference issue

Example: Fixes #1234.

What does this implement/fix?

Explain your changes.

Additional information

Any additional information you think is important.

brovelli and others added 3 commits September 18, 2026 16:13
…-3.12

- _tf_decomp: mne changed the default of `zero_mean` in tfr_array_morlet
  / tfr_array_multitaper from False (<=1.5) to True, so conn_spec results
  silently depended on the installed mne version. Set zero_mean=False
  explicitly (user values in kw_cwt / kw_mt take precedence) and pin it in
  the conn_spec reference tests as well.
- CI: Python matrix 3.8/3.9 -> 3.10/3.11/3.12 (mne >= 1.13 requires
  Python >= 3.11), flake / doc jobs on 3.11, classifiers updated.
- What's new: conn_spec fixes from PR #69 and the Python / mne range.

Verified with the full test suite at both ends of the supported range:
Python 3.10 + mne 1.5.0 and Python 3.12 + mne 1.13.2 + numpy 2.5.3.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The doc build failed on the new CI matrix (Python 3.10 / 3.11 / 3.12)
while pytest passed:

    Extension error: Could not import extension sphinxcontrib.bibtex
    (cannot import name 'MutableSet' from 'collections')

sphinxcontrib-bibtex was pinned to 1.0.0 (2019), which depends on `oset`
and its `collections.MutableSet` import, an alias removed in Python 3.10.
This is why the build only ever passed on the old 3.8 / 3.9 matrix.

- setup.py: sphinxcontrib-bibtex>=2.6 and sphinx>=7.4 (bibtex 2.7 needs
  it; the sphinx==7.0.0 pin is lifted, the build is verified with Sphinx
  7.4.7 and 9.0.4)
- conf.py: intersphinx_mapping in the named format required by Sphinx
  >= 8 (the pre-1.0 format was rejected with a ConfigError), language
  'en' instead of None
- what's new: the extlink role is :pull:, not :PR:

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
On the Python 3.12 CI job, 31 of the 34 gallery examples failed with

    ModuleNotFoundError: No module named 'pkg_resources'

raised by frites.set_mpl_style, which every example calls first.
pkg_resources belongs to setuptools, which is no longer installed by
default in Python >= 3.12 environments and whose pkg_resources module is
deprecated. Locate the .mplstyle files with the stdlib
importlib.resources instead (Python >= 3.9).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
brovelli merged commit 8a15842 into master Sep 18, 2026
3 checks passed
brovelli deleted the fix/mne-compat branch September 19, 2026 08:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL