Skip to content

MAINT: Fix CIs - #11836

Merged
larsoner merged 3 commits into
mne-tools:mainfrom
larsoner:numpy
Jul 26, 2023
Merged

larsoner merged 3 commits into
mne-tools:mainfrom
larsoner:numpy

Conversation

@larsoner

Copy link
Copy Markdown
Member

In theory we should fix the failures, but let's try a quick band-aid to get CIs happy 🩹

Comment thread mne/conftest.py Resolved
larsoner and others added 2 commits July 26, 2023 16:32
@scott-huberty

Copy link
Copy Markdown
Contributor

Does that line in conftest set the array print behavior for the entire testing suite?

@larsoner

Copy link
Copy Markdown
Member Author

Does that line in conftest set the array print behavior for the entire testing suite?

Based on where I put it (pytest_configure) it should get called at the very beginning of the pytest run, before test collection even I think. np.set_printoptions sets a global state so it should do what we want here. Typically what we want to use is something like with np.printoptions context manager that temporarily sets a state, but in this case we want the old behavior back permanently until we adjust all our tests and such to the new repr type.

So in short: yes I think/hope so.

@larsoner
larsoner enabled auto-merge (squash) July 26, 2023 20:50
@larsoner
larsoner merged commit 0fd4ded into mne-tools:main Jul 26, 2023
@larsoner
larsoner deleted the numpy branch July 26, 2023 22:01
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.

3 participants