-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
MRG: Add support for hemi=split in time_viewer #7219
MRG: Add support for hemi=split in time_viewer #7219
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.py
withhemi=split
:The zoom between the views is not linked, that would be nice to have I think.
ToDo
show_view()
whenhemi=split
or whenlen(views)>1
len(views)>1
It's an item of #7162