Skip to content

Conversation

@GuillaumeFavelier
Copy link
Contributor

@GuillaumeFavelier GuillaumeFavelier commented Sep 11, 2020

This PR aims at reducing the time used by PyVista 3d viz tests. This is still a work in progress.

Try:

  • Returning an "unmapped" actor
  • actor.SetVisibility(False)

Closes #8242

@GuillaumeFavelier GuillaumeFavelier self-assigned this Sep 11, 2020
@larsoner
Copy link
Member

Looks like that shaved off 5 minutes, on this PR we get:

=========================== slowest 20 test modules ============================
448.15s total  mne/viz/tests/
 73.16s total  mne/viz/_brain/
  1.08s total  mne/viz/backends/

compared to master where it's:

=========================== slowest 20 test modules ============================
605.34s total  mne/viz/tests/
231.41s total  mne/viz/_brain/

@GuillaumeFavelier
Copy link
Contributor Author

GuillaumeFavelier commented Sep 11, 2020

Very similar result with actor.SetVisibility(False):

=========================== slowest 20 test modules ============================
464.76s total  mne/viz/tests/
 79.87s total  mne/viz/_brain/
  1.42s total  mne/viz/backends/

Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, feel free to merge @GuillaumeFavelier of travis reports reduced time and circle is okay

@larsoner larsoner added this to the 0.21 milestone Sep 12, 2020
@larsoner
Copy link
Member

It died because of #8241 so I'll go ahead and merge. Perhaps we should allow the viz tests to have more granularity in the reporting, since those are all sub-sub-module tests essentially...

@larsoner larsoner merged commit ca3e787 into mne-tools:master Sep 12, 2020
@GuillaumeFavelier GuillaumeFavelier deleted the viz_testing branch September 12, 2020 06:55
marsipu pushed a commit to marsipu/mne-python that referenced this pull request Oct 14, 2020
* Specialize Travis

* TST: Use no-op _add_mesh during testing

* TST: Use SetVisibility(False)

* Revert "Specialize Travis" [circle full]

This reverts commit b1be32d.
@larsoner larsoner mentioned this pull request Jun 10, 2021
86 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MAINT: Tests taking too long

2 participants