Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for n-dimensional arrays in _tfr_from_mt #13104

Merged
merged 3 commits into from
Feb 10, 2025

Conversation

tsbinns
Copy link
Contributor

@tsbinns tsbinns commented Feb 6, 2025

Reference issue (if any)

Fixes #13085

What does this implement/fix?

Allows the _tfr_from_mt function introduced in #12910 to work with ndarrays similar to _psd_from_mt. This is required for some code in MNE-Connectivity.

Changes are already covered by the existing unit tests.

Additional Information

No changelog entry since it's just an internal thing.

mne/time_frequency/tfr.py Outdated Show resolved Hide resolved
@tsbinns
Copy link
Contributor Author

tsbinns commented Feb 10, 2025

Some unrelated failing tests for macos

@larsoner
Copy link
Member

Restarted failing jobs and marking for merge-when-green, thanks in advance @tsbinns !

@larsoner larsoner merged commit 8eaa521 into mne-tools:main Feb 10, 2025
31 of 32 checks passed
@tsbinns tsbinns deleted the tfr_from_mt_ndarrays branch February 10, 2025 15:24
larsoner added a commit to larsoner/mne-python that referenced this pull request Feb 11, 2025
* upstream/main:
  [pre-commit.ci] pre-commit autoupdate (mne-tools#13110)
  ENH: add interpolate_to method (mne-tools#13044)
  add overwrite and verbose params to info.save (mne-tools#13107)
  Add support for n-dimensional arrays in `_tfr_from_mt` (mne-tools#13104)
  Skip first "New Segment" BrainVision marker (mne-tools#13100)
  MAINT: Use statsmodels pre and fix CircleCI (mne-tools#13106)
  Take units (m or mm) into account when showing fieldmaps on top of brains (mne-tools#13101)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#13099)
  MAINT: Update code credit (mne-tools#13093)
  Fix EEGLAB import (nodatchans) (mne-tools#13097)
  MAINT: Fix CircleCI [circle deploy] (mne-tools#13089)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#13088)
  Fix signature of some more _close() methods [circle deploy] (mne-tools#13087)
  Fix _close() on MNEAnnotationsFigure and MNESelectionFigure [circle deploy] (mne-tools#13086)
  BUG: Fix bug with Mesa 3D detection (mne-tools#13082)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for n-dimensional arrays in _tfr_from_mt
2 participants