Skip to content

handle _Brain size gracefully with pyvista#7435

Merged
GuillaumeFavelier merged 4 commits intomne-tools:masterfrom
drammock:brain-plot-size
Mar 13, 2020
Merged

handle _Brain size gracefully with pyvista#7435
GuillaumeFavelier merged 4 commits intomne-tools:masterfrom
drammock:brain-plot-size

Conversation

@drammock
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Any idea why the CIs are not happy?

@GuillaumeFavelier
Copy link
Copy Markdown
Contributor

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

@drammock
Copy link
Copy Markdown
Member Author

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

@codecov
Copy link
Copy Markdown

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
Copy Markdown
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