Skip to content

Change color from annotation to red if name changes to "bad_" or "edge_" - #11753

Merged
larsoner merged 1 commit into
mne-tools:mainfrom
mscheltienne:annot-fixes
Jun 27, 2023
Merged

larsoner merged 1 commit into
mne-tools:mainfrom
mscheltienne:annot-fixes

Conversation

@mscheltienne

@mscheltienne mscheltienne commented Jun 27, 2023 •

Copy link
Copy Markdown
Member

Part of mne-tools/mne-qt-browser#172
The Qt Browser has a dialog menu to edit existing annotation. At the moment, editing an annotation from "whatever" to "bad" would not change the color to red. It would use the same color as what "whatever" had.

With this PR, all annotations starting with "bad" or "edge" will have their color overwritten to red before checking if the annotation name already had an attributed color.

@larsoner
larsoner merged commit be5f51a into mne-tools:main Jun 27, 2023
@larsoner

Copy link
Copy Markdown
Member

Thanks @mscheltienne !

@mscheltienne
mscheltienne deleted the annot-fixes branch June 27, 2023 12:24
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.

2 participants