MRG, ENH: Improve mixed source estimate support#7597
MRG, ENH: Improve mixed source estimate support#7597larsoner merged 9 commits intomne-tools:masterfrom
Conversation
|
cc @fleurgaudfernau I plan to work on this in the coming days/weeks, let me know if the API plan makes sense to you |
|
@larsoner Yes, it seems good to me! |
654abd0 to
fa324c4
Compare
|
@agramfort this is ready for review/merge from my end. I've updated the top description to say what will be done in subsequent PRs to make reviewing hopefully easier. |
Codecov Report
@@ Coverage Diff @@
## master #7597 +/- ##
==========================================
- Coverage 90.17% 90.14% -0.03%
==========================================
Files 454 454
Lines 82751 83929 +1178
Branches 13230 13324 +94
==========================================
+ Hits 74621 75661 +1040
- Misses 5266 5406 +140
+ Partials 2864 2862 -2 |
|
@larsoner can you explain the new logic of vertices_list and _vertices attributes? |
|
In That's the plan I hatched in any case... |
|
A (much) simpler thing to do is to make |
|
(it could qualify as a bug really...) |
|
as long as it does not break code when reading an old file from disk I think we can consider this a bug fix. |
|
@agramfort done |
9bd48b0 to
3dcc47f
Compare
| vals['sdr_morph'].__dict__ = morph | ||
| # Backward compat with when it used to be a list | ||
| if isinstance(vals['vertices_to'], np.ndarray): | ||
| vals['vertices_to'] = [vals['vertices_to']] |
There was a problem hiding this comment.
Yes anyone with a SourceMorph saved to disk will need this shim
| assert sug == '' # nothing | ||
| sug = _suggest('Left-cerebellum', names) | ||
| assert sug == " Did you mean 'Left-Cerebellum-Cortex'?" | ||
| sug = _suggest('Cerebellum-Cortex', names) |
extract_label_time_courseMixedSourceEstimate.plot_surfacein favor ofstc.surface().plot()Next PRs:
*VectorSourceEstimatetoextract_label_time_course(MRG, ENH: Add label extraction for vector source estimates #7647)SourceMorphto handle mixed source spaces + estimatesIn the long run:
Vol/MixedSourceEstimate.plotto_Brainsomehow (volume rendering?)Closes #7564