Skip to content

MAINT: Work around NumPy deprecation#11878

Merged
larsoner merged 9 commits intomne-tools:mainfrom
larsoner:cis
Aug 14, 2023
Merged

MAINT: Work around NumPy deprecation#11878
larsoner merged 9 commits intomne-tools:mainfrom
larsoner:cis

Conversation

@larsoner
Copy link
Copy Markdown
Member

@larsoner larsoner commented Aug 14, 2023

Closes #11827

@larsoner larsoner enabled auto-merge (squash) August 14, 2023 14:34
Comment on lines +148 to +156
# TODO: This is a hack to deal with the fact that the
# with plt.ion():
# BACKEND = get_backend()
# an the top of _mpl_figure detects QtAgg during testing even though
# we've set the backend to Agg.
if backend != "agg":
gotten_backend = get_backend()
if gotten_backend == "agg":
backend = "agg"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI @drammock the global BACKEND business seems to be the cause of needing

    # TODO: This is indicative of a problem
    ignore:.*Matplotlib is currently using agg.*:

in conftest... I'm trying a hopefully better workaround here.

@larsoner larsoner merged commit 522cf44 into mne-tools:main Aug 14, 2023
@larsoner larsoner deleted the cis branch August 14, 2023 18:55
larsoner added a commit to larsoner/mne-python that referenced this pull request Aug 15, 2023
* upstream/main:
  Refactor test_epochs.py::test_split_saving (1 out of 2) (mne-tools#11880)
  FIX: Missing Saccade information in Eyelink File (mne-tools#11877)
  Improve drawing of annotations with matplotlib (mne-tools#11855)
  MAINT: Work around NumPy deprecation (mne-tools#11878)
larsoner added a commit to drammock/mne-python that referenced this pull request Aug 22, 2023
* upstream/main:
  [pre-commit.ci] pre-commit autoupdate (mne-tools#11911)
  [BUG, MRG] Remove check on `mne.viz.Brain.add_volume_labels` (mne-tools#11889)
  Small splits fix (mne-tools#11905)
  adds niseq package to "Related software" (mne-tools#11909)
  Minor fixes for ERDS maps example (mne-tools#11904)
  FIX: Fix pyvista rendering (mne-tools#11896)
  BUG: Fix epoch splits naming (mne-tools#11876)
  ENH: Use section-title for HTML anchors in Report (mne-tools#11890)
  CI: Deploy [circle deploy]
  MAINT: Clean up whats_new and doc versions (mne-tools#11888)
  Refactor test_epochs.py::test_split_saving (2 out of 2) (mne-tools#11884)
  Cross-figure event passing system (mne-tools#11685)
  MAINT: Post-release deprecations, updates [circle deploy] (mne-tools#11887)
  MAINT: Release 1.5.0 (mne-tools#11886)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#11883)
  Refactor test_epochs.py::test_split_saving (1 out of 2) (mne-tools#11880)
  FIX: Missing Saccade information in Eyelink File (mne-tools#11877)
  Improve drawing of annotations with matplotlib (mne-tools#11855)
  MAINT: Work around NumPy deprecation (mne-tools#11878)
snwnde pushed a commit to snwnde/mne-python that referenced this pull request Mar 20, 2024
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.

Test failures for MNE 1.4.2 in Fedora

1 participant