Repository navigation
MRG: Better shape checks for SourceEstimate - #5973
Merged
Merged
Conversation
Member
Author
|
Argh this exposes a problem where |
Codecov Report
@@ Coverage Diff @@
## master #5973 +/- ##
==========================================
+ Coverage 88.71% 88.83% +0.11%
==========================================
Files 401 401
Lines 72754 72839 +85
Branches 12162 12172 +10
==========================================
+ Hits 64542 64704 +162
+ Misses 5272 5214 -58
+ Partials 2940 2921 -19 |
agramfort
reviewed
Feb 20, 2019
agramfort
reviewed
Feb 20, 2019
agramfort
reviewed
Feb 20, 2019
| return self.vertices | ||
|
|
||
| @verbose | ||
| def save(self, fname, ftype='h5', verbose=None): |
Member
There was a problem hiding this comment.
does it mean we write to hdf5 by default also for surface SourceEstimates with this?
Member
Author
There was a problem hiding this comment.
No, SourceEstimate overrides this and only calls super if they request h5
Member
|
ok ! LGTM then
… |
Member
Author
|
Renaming complete |
Member
|
thx @larsoner |
jeythekey
pushed a commit
to jeythekey/mne-python
that referenced
this pull request
Apr 27, 2019
* BUG: Better shape checks for SourceEstimate * ENH: Add VolVectorSourceEstimate * STY: Rename * FIX: Missed one * STY: docstyle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've run into tricky problems accidentally passing vector data
(n, 3, t)to SourceEstimate. This implementsdatasize checks for our classes.