-
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, ENH: Scrape traces when available #7927
Conversation
Can you share a link to rendered doc ? |
Actually it does not work on CircleCI because of But it works fine locally! |
I'm guessing that #7697 might allow us to remove |
We can try after it is merged but I expect some more memory optimization hacks to be necessary. |
FWIW my expectation is that all of these problems probably come down to some |
actually what I requested was to demo the white background but this is even better :) |
Are the mat plot lib default colors adapted to this default black background?
|
No we manually set them (that was #7925). Arguably we should use some sort of style sheet or |
I added a small fix for style and started the CIs again. |
When I run plot_mixed_source_space_inverse locally on my macos machine, it somehow uses 4 GB of memory. @GuillaumeFavelier have you used memprof to compare mayavi and PyVista? I won't have time today but can next week. It would be good to know if there is a big difference. I'm the meantime I'll push a commit to skip just that example to see if it's the only remaining problem. |
(I restarted the build probably five times yesterday and it always died on that example) |
I also noticed a crash in https://travis-ci.org/github/mne-tools/mne-python/jobs/702324837#L3337
|
It's the Travis job on MacOS |
I'm guessing that this is semi-spurious and related to one of the previous PRs we've merged rather than this one. I wonder if a Let's see if CircleCI succeeds without the |
So on
produces a SG memory estimate of 1006 MB in 26 sec for the example, with If we add a On this PR, SG estimates 1330 in 25 sec MB with It looks like the last few builds died on |
09464d3
to
f180b06
Compare
I'm concerned about the 40% difference between the mayavi and pyvista backends. You think it's because of the traces? I'll do some experiments locally and see if I can bring that down a little. |
Not sure why that's happening. Maybe PyVista is computing some things for the meshes that it doesn't need to, or maybe it's making some copies of data somewhere? I'd start from a single hemi, single view, no data surface |
8bfa2b6
to
6cc5246
Compare
@GuillaumeFavelier pretty sure this should fix the memory problems: Can you review? If you're happy I'll merge once CIs (including |
After this PR, it's possible that we can relax some of the |
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.
This looks way better :)
My only nitpick is about the location of _BrainScraper
, I would just move it into mne/viz/_brain/scraper.py
for example. I know it makes everything verbose but that's where all the _Brain
related things are. Or we can find a better plan in another PR.
Good call -- I'll try moving it there and updating |
Added |
As @agramfort requested:
Todo:
show_traces=True, time_viewer=False
error