Skip to content

[MRG] By-pass set_annotations when plotting ICA sources - #11766

Merged
mscheltienne merged 8 commits into
mne-tools:mainfrom
mscheltienne:test-branch-from-main
Jul 6, 2023
Merged

mscheltienne merged 8 commits into
mne-tools:mainfrom
mscheltienne:test-branch-from-main

Conversation

@mscheltienne

Copy link
Copy Markdown
Member

No idea why my other branch is broken; but even on the website I can visualize it only once out of 5 tries.
Same as #11763 but working.

Fixes #11762

Comment thread mne/viz/tests/test_ica.py Outdated
assert len(fig.mne.ax_hscroll.collections) == 1
else:
assert len(fig.mne.regions) == 1
assert assert_allclose(fig.mne.regions[0].getRegion(), (0.2, 0.3))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't forget this :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Damn I'm exhausted.. took me a while to notice the double assert with this change 🙈

@mscheltienne mscheltienne changed the title By-pass set_annotations when plotting ICA sources [MRG] By-pass set_annotations when plotting ICA sources Jul 2, 2023
@mscheltienne
mscheltienne merged commit 2eb608a into mne-tools:main Jul 6, 2023
@mscheltienne

Copy link
Copy Markdown
Member Author

I don't usually merge my own PRs, but I'll consider this one reviewed by @larsoner in #11763.
I have someone on campus who would like to pull this change for his pipeline.

@mscheltienne
mscheltienne deleted the test-branch-from-main branch July 6, 2023 09:04
@larsoner

larsoner commented Jul 6, 2023

Copy link
Copy Markdown
Member

Yes that's fine, thanks @mscheltienne !

larsoner added a commit to larsoner/mne-python that referenced this pull request Dec 6, 2024
* upstream/main: (26 commits)
  MAINT: Better fix for deprecation (mne-tools#11789)
  udpate doc for 11786 (mne-tools#11787)
  MAINT: Ignore warning in example (mne-tools#11781)
  Keeping event names when combining channel on epochs objects (mne-tools#11786)
  DOC: Fix incorrect docs for annotate_movement [ci skip] (mne-tools#11779)
  Refresh eegbci code and docstrings (mne-tools#11783)
  DOC: EEG eye-tracking alignment tutorial (mne-tools#11770)
  [MRG] By-pass set_annotations when plotting ICA sources  (mne-tools#11766)
  add missing changelog from 11773 (mne-tools#11777)
  Fix eeglab.py, an error for read annotations in `RawEEGLab` (mne-tools#11773)
  [MRG] Use FIFF.FIFF_UNITM_NONE instead of 0 when adding a reference channel (mne-tools#11774)
  MAINT: Update for linkcheck [circle linkcheck] (mne-tools#11771)
  ENH: Interpolate blinks in eyetrack channels (mne-tools#11740)
  MAINT: Work around joblib bug (mne-tools#11765)
  Update manual install docs (mne-tools#11764)
  add logging message about which EOG channel used for blink detection (mne-tools#11757)
  DOC: Fix docs (mne-tools#11756)
  BUG: Fix bug with SNR calculation (mne-tools#11755)
  BUG: Fix bug with cHPI off (mne-tools#11754)
  Change color from annotation to red if name changes to "bad_" or "edge_" (mne-tools#11753)
  ...
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.

Annotation displayed on ICA sources when meas_date is None and first_samp is not 0 are wrong

2 participants