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

handle _Brain size gracefully with pyvista #7435

Merged
merged 4 commits into from Mar 13, 2020

Conversation

drammock
Copy link
Member

closes #7426

Also removes u" at beginning of docstrings in the edited file.

It turns out that pysurfer.Brain doesn't really check size at all:

https://github.com/nipy/PySurfer/blob/master/surfer/viz.py#L557-L561

So I just did what seemed sensible to me.

@drammock drammock added this to the 0.20 milestone Mar 12, 2020
Copy link
Contributor

@GuillaumeFavelier GuillaumeFavelier left a comment

Choose a reason for hiding this comment

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

LGTM @drammock, thanks for taking care of it

@GuillaumeFavelier
Copy link
Contributor

Any idea why the CIs are not happy?

@GuillaumeFavelier
Copy link
Contributor

Nevermind. This has been reported in Teemu/pytest-sugar#187

@drammock
Copy link
Member Author

@GuillaumeFavelier this has been rebased with the pytest-sugar fix, ready to go when CIs are green.

@codecov
Copy link

codecov bot commented Mar 13, 2020

Codecov Report

Merging #7435 into master will increase coverage by 0.14%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #7435      +/-   ##
==========================================
+ Coverage   89.97%   90.12%   +0.14%     
==========================================
  Files         454      454              
  Lines       82322    81499     -823     
  Branches    13022    13020       -2     
==========================================
- Hits        74073    73450     -623     
+ Misses       5409     5220     -189     
+ Partials     2840     2829      -11

@GuillaumeFavelier GuillaumeFavelier merged commit b11c4ab into mne-tools:master Mar 13, 2020
@GuillaumeFavelier
Copy link
Contributor

Thanks @drammock

@drammock drammock deleted the brain-plot-size branch March 17, 2020 16:13
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.

pyvista _Brain init too stringent about size parameter
2 participants