Skip to content
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 smoothing controller to TimeViewer for the notebook backend #7928

Merged

Conversation

GuillaumeFavelier
Copy link
Contributor

@GuillaumeFavelier GuillaumeFavelier commented Jun 25, 2020

This PR adds a controller to the notebook backend to set the number of smoothing steps when time_viewer=True.

Issue

The rendering cell is broken because of the text given by logger I think (the name of the backend and the number of iterations for smoothing).

image

image

It's part of #7162.

@larsoner
Copy link
Member

larsoner commented Jun 25, 2020

I would just wrap this call in with mne.utils.use_log_level(False): to always suppress these messages. They aren't really useful now that our morphing is fairly fast

@GuillaumeFavelier
Copy link
Contributor Author

Your advice helped, now the messages about the number of iterations have stopped popping up.
If the first element of the rendered cell is not text, it works as expected, otherwise the cell is not flat and sliding is needed. This behaviour is totally normal.

@GuillaumeFavelier GuillaumeFavelier changed the title WIP: Add smoothing controller to TimeViewer for the notebook backend MRG: Add smoothing controller to TimeViewer for the notebook backend Jun 25, 2020
@GuillaumeFavelier
Copy link
Contributor Author

I can cherry-pick 1355296 here if needed?

@larsoner
Copy link
Member

Go ahead and I'll merge so it gets into master

@larsoner larsoner merged commit 969c7d8 into mne-tools:master Jun 25, 2020
@larsoner
Copy link
Member

Thanks @GuillaumeFavelier

@GuillaumeFavelier GuillaumeFavelier deleted the notebook_timeviewer_smoothing branch June 25, 2020 16:10
larsoner added a commit to larsoner/mne-python that referenced this pull request Jun 25, 2020
* upstream/master: (23 commits)
  MAINT: Add mne.surface to docstring tests (mne-tools#7930)
  MRG: Add smoothing controller to TimeViewer for the notebook backend (mne-tools#7928)
  MRG: TimeViewer matplotlib figure color (mne-tools#7925)
  fix typos (mne-tools#7924)
  MRG, ENH: Add method to project onto max power ori (mne-tools#7883)
  WIP: Warn if untested NIRX device (mne-tools#7905)
  MRG, BUG: Fix bug with volume morph and subject_to!="fsaverage" (mne-tools#7896)
  MRG, MAINT: Clean up use of bool, float, int (mne-tools#7917)
  ENH: Better error message for incompatible Evoked objects (mne-tools#7910)
  try to fix nullcontext (mne-tools#7908)
  WIP: Fix Travis (mne-tools#7906)
  WIP: Prototype of notebook viz (screencast) (mne-tools#7758)
  MRG, FIX: Speed up I/O tests, mark some slow (mne-tools#7904)
  Proper attribution for Blender tutorial (mne-tools#7900)
  MAINT: Check usage [ci skip] (mne-tools#7902)
  Allow find_bad_channels_maxwell() to return scores (mne-tools#7845)
  Warn if NIRx directory structure has been modified from original format (mne-tools#7898)
  Pin pvyista to 0.24.3 (mne-tools#7899)
  MRG: Add support for reading and writing sufaces to .obj (mne-tools#7824)
  Fix _auto_topomap_coords docstring. (mne-tools#7895)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants