MRG: Add support for hemi=split in time_viewer#7219
MRG: Add support for hemi=split in time_viewer#7219larsoner merged 9 commits intomne-tools:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7219 +/- ##
=========================================
Coverage ? 89.77%
=========================================
Files ? 445
Lines ? 80046
Branches ? 12802
=========================================
Hits ? 71860
Misses ? 5374
Partials ? 2812 |
|
any idea what's going on?
… |
|
I'm not sure but it could be related to pyvista/pyvista#513 |
|
Or anyway I think we should wait for this issue to be solved in order to have full control on the sliders position between the views. |
|
Agreed |
|
Locally, following pyvista/pyvista#513 (comment) method, I managed to retrieve them: I can try to patch in Note: the views are not correct still but this is a different bug* |
|
How Should we duplicate the orientation slider in each view? |
My advice is to always look first at PySurfer to see what it does to at least get an idea: https://pysurfer.github.io/generated/surfer.Brain.html#surfer.Brain.show_view In this case it has
That would be great! |
|
Beautiful! |
|
With this, the issue with the default values of the orientation sliders should be fixed. |
|
Should we test/review/merge or wait for PyVista fixes upstream? |
|
Feel free to review/test/merge this one @larsoner , @agramfort |
|
Oh and actually in your original comment @larsoner, you wanted to move some UI elements. If you test and you're not satisfied by the current setup, you can also let me know |
agramfort
left a comment
There was a problem hiding this comment.
works for me ! nice work @GuillaumeFavelier
|
Works beautifully, awesome @GuillaumeFavelier ! |
* Start with all controls on the first view * Fix show_view when hemi=split * Mitigate slider disappearing if shape(1+,2) * Dispatch an orientation slider per view * Dispatch orientation slider to each view (not only row) * Refactor brain entirely * Fix default value for orientation slider * Improve coverage
* Start with all controls on the first view * Fix show_view when hemi=split * Mitigate slider disappearing if shape(1+,2) * Dispatch an orientation slider per view * Dispatch orientation slider to each view (not only row) * Refactor brain entirely * Fix default value for orientation slider * Improve coverage





This PR starts the work on
hemi=split. Let's go incrementally on this one. For now I put all the controls on the first view.Using
plot_visualize_stc.pywithhemi=split:The zoom between the views is not linked, that would be nice to have I think.
ToDo
show_view()whenhemi=splitor whenlen(views)>1len(views)>1It's an item of #7162