-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
WIP: Set time_viewer and show_traces to auto #7380
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
WIP: Set time_viewer and show_traces to auto #7380
Conversation
|
To achieve
|
|
can you explain why?
|
|
By default the 3d tests are done with |
Codecov Report
@@ Coverage Diff @@
## master #7380 +/- ##
==========================================
+ Coverage 90.09% 90.10% +0.01%
==========================================
Files 453 453
Lines 82610 82622 +12
Branches 13062 13065 +3
==========================================
+ Hits 74427 74447 +20
+ Misses 5356 5351 -5
+ Partials 2827 2824 -3 |
|
The latest commit is marked as test because the |
|
The mne-python/mne/viz/backends/_pysurfer_mayavi.py Lines 464 to 472 in 499f917
compared to mne-python/mne/viz/backends/_pyvista.py Lines 647 to 661 in 499f917
So I think it's totally safe to add it to the list: Lines 238 to 243 in 499f917
|
|
The tests using Among those, only: are supported by |
|
I forgot to update Circle config yesterday... The issue with pytest-sugar is back |
|
Can we just do |
|
I notice a few warnings of the type: Also, there is an issue with I'll push a fix. |
| opacity=0.5, high_resolution=False) | ||
| if renderer.get_3d_backend() == 'mayavi': | ||
| import mayavi # noqa: F401 analysis:ignore | ||
| assert isinstance(surf, mayavi.modules.surface.Surface) |
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.
Shouldn't we keep some variant of this? Can you instead change it to renderer_interactive.get_3d_backend()?
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.
Indeed that was a bit too agressive, I'll add a branch for mayavi
|
I'll try |
|
Merged @GuillaumeFavelier |
|
#7480 was not enough apparently since we got a timeout too, I'm trying with |
|
@larsoner , @agramfort the timeout seems related to https://18788-1301584-gh.circle-artifacts.com/0/dev/index.html Is it good enough to have only |
|
yes ok. It can be improved later after the release.
… |
|
This is ready for reviews then |
agramfort
left a comment
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.
@larsoner merge if you're happy
I'm not so sure because this would be a change in behavior with no deprecation cycle. A lesser evil would probably be to add a private |
I guess it's possible indeed, what do you think @agramfort ? Why private though @larsoner ? |
Hopefully eventually we can fix the memory/timeout problem and kill |
I'll continue to investigate locally |
|
Yes please do, but in the meantime the private env var workaround would make it so that we don't have to figure it out before release |
|
Pushed a commit with the CircleCI workaround and setting both |
|
Thank you @larsoner |
larsoner
left a comment
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.
LGTM +1 for merge from my end
@agramfort happy with this?
|
if @drammock and @hoechenberger are happy I am happy. Happy @drammock and @hoechenberger ? |
|
LGTM! |


This PR sets
time_viewer='auto'andshow_traces='auto'. It's still a work in progress.It's an item of #7162