-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Rework Reports (new history) #9754
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
Conversation
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.
Great that there is a real diff now! I did not look at everything, but noticed a few minor things
|
Thanks for the initial suggestions, @larsoner! Some good catches. I'll try to address all of them and ping you. |
… types of channels were not written and bug where annotations were not written to correct scale (mne-tools#9694) * Fixing bug * Update doc. * Update docstring * Add diff * Add diff * Add diff * Add warning * Fix flake * Adding test at data level. * Dont mess with global random state * Adding note to edf export * Adding note to edf export * Adding updated unit tests and io reading for edf * Adding unit test for channel type * Adding change log * Add warning * Add additional parameter * Fix docstring * Fixing other test * Fix flake * Apply suggestions from code review Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> * Update mne/export/tests/test_export.py Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> * Fixing flake * Apply suggestions from code review Co-authored-by: Daniel McCloy <dan@mccloy.info> * Update mne/export/_edf.py Co-authored-by: Daniel McCloy <dan@mccloy.info> * Update mne/export/_edf.py Co-authored-by: Daniel McCloy <dan@mccloy.info> * Update mne/export/_edf.py Co-authored-by: Daniel McCloy <dan@mccloy.info> * Merge * Address comments * Check double export * Fix flake * Remove scruff * Fix codespell * Apply suggestions from code review Co-authored-by: Daniel McCloy <dan@mccloy.info> * update docstring * Commeent on stim * Fix annotations * Adding docstring * Fix number of annotations * Add check for duration * Fix issues * Fix docstring * Apply suggestions from code review Co-authored-by: Clemens Brunner <clemens.brunner@gmail.com> * Clarify warning and inline comment * Fix docstring * Fix doc warning and len(annotations). Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> Co-authored-by: Daniel McCloy <dan@mccloy.info> Co-authored-by: Clemens Brunner <clemens.brunner@gmail.com>
* update info html template * add all channel types to the html repr * update html repr test * Update mne/io/meas_info.py Co-authored-by: Eric Larson <larson.eric.d@gmail.com> * Update mne/io/meas_info.py Co-authored-by: Eric Larson <larson.eric.d@gmail.com> * add repr_html smoke test * ENH: Titles * update changelog * fix name in the change log * FIX: Move down Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
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.
looks great !
I even just tested the mne report command it produced a beautiful report on my laptop !
🎉 👏
|
Test time is still a problem (maybe MRI rendering, maybe something else): The only report-related ones that show up in a different PR's recent build are: |
|
@larsoner Ouch, good catch. I managed to cut down the test time drastically on my local machine, and I'm surprised tests still take so long on GH Actions. Back to the profiler, I suppose! |
|
3D plotting is much slower there, my guess is it's the new alignment plotting function. One option is to make it so the view/size there is very small so there is less to render |
|
On Linux you can test this using |
|
Locally there is at least some slowdown from software rendering, so I think it probably is the 3D rendered And with So locally I would target the four calls in those to speed them up somehow. Making the render window smaller is one way. |
|
... actually hold on, I think we have a regression with MNE_3D_BACKEND_TESTING where we automagically made it so that these things were faster. Let me see if I can fix it quickly. |
|
Oh yes, I think you might be in the right track here!! |
|
Nope, no regression -- really the slowdown here is caused because the I'll push and we'll see how the CIs do. But really these are both still too slow, this is what I see on |
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.
Tests too slow currently
But keep in mind that we're actually plotting much more now than we used to, so a bit of slowdown is to be expected. But I agree, the current slowdown is too much. |
|
@larsoner Test runtime summary for And on You think this is good enough? Otherwise I can try even harder to make the tests shorter and potentially also merge |
|
A minute is a really long time for a test -- we have over 3000 tests and a single one-minute test takes roughly 1/50th of our allowed test time. Can I take a look and see if I can speed it up somehow? |
|
Yes if you want to give it a shot, I won't say no! But only if you can squeeze it into your schedule! Otherwise I'll just try my best to improve things once more :) |
|
Linux pip-pre 3.9: Linux conda 3.9: In an unrelated PR #9810 (should be same as So we now improve on this PR by just testing PyVistaQt. We could make it test Mayavi as well, but we're hopefully removing that soon enough that it won't matter. Or even changing whichever test is fastest that uses |
|
Thx @hoechenberger ! |
|
Very cool. Can't wait to try these out. |
|
Thank you so much, @larsoner! |
* upstream/main: MAINT: Update broken link, fix rendering (mne-tools#9829) Ensure plot_ica_sources() always plots traces of rejected ICs on top (mne-tools#9823) Improve plot_ica_sources() docstring (mne-tools#9825) MRG: Fix docstring for plot_ica_components() (mne-tools#9826) unpin jsonschema and filter its warning instead (mne-tools#9822) Add warning for SNIRF files with != 2 wavelengths (mne-tools#9817) add show_scalebars param to epochs.plot() (mne-tools#9815) MRG: Allow _plot_mri_contours() to return arrays (mne-tools#9818) MRG: Expand ~ in _check_fname() (mne-tools#9613) Improve ICA.plot_overlay() docstrings (mne-tools#9820) WIP, MAINT: Fix CircleCI (again) (mne-tools#9814) MRG, ENH: Add options to fit_dipole (mne-tools#9810) Rework Reports (new history) (mne-tools#9754) MRG, CI: Use VTK pre (mne-tools#9803)
Rework of #9722 after #9749 had been merged