Skip to content

MRG, BUG: Fix montage plotting, deduplication, and preload check - #8178

Merged
larsoner merged 5 commits into
mne-tools:masterfrom
larsoner:mon
Sep 1, 2020
Merged

larsoner merged 5 commits into
mne-tools:masterfrom
larsoner:mon

Conversation

@larsoner

Copy link
Copy Markdown
Member

Fix a few small bugs before release. Pooled together because the changes are all pretty small and hopefully easy to understand, so I figured I'd try to save some CI cycles. Can split back out if necessary.

Closes #8025
Closes #7859
Closes #7452

@larsoner larsoner added this to the 0.21 milestone Aug 31, 2020

@agramfort agramfort left a comment

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.

besides my nitpick. +1 for MRG

thx @larsoner

Comment thread mne/channels/_standard_montage_utils.py Outdated
return make_dig_montage(ch_pos=_dedup_dict(ch_names, pos))


def _dedup_dict(ch_names, pos):

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.

this function is not actually deduplicating but just warning if there are dupes. I find name misleading.

Please rename _dedup_dict to _check_dupes_odict to also say you get an ordered dict out.

@larsoner
larsoner merged commit 54259a8 into mne-tools:master Sep 1, 2020
@larsoner
larsoner deleted the mon branch September 1, 2020 13:28
@sappelhoff

Copy link
Copy Markdown
Member

thanks @larsoner

larsoner added a commit to hubertjb/mne-python that referenced this pull request Sep 2, 2020
…ysionet

* upstream/master:
  ENH: Add message (mne-tools#8193)
  ENH: Allow writing BEM in H5 format (mne-tools#8191)
  ENH: Add ori on MRI slices (mne-tools#8188)
  Ricoh new files (mne-tools#8187)
  MRG: Split _timeviewer.py into multiple files (mne-tools#8181)
  ENH: Better memory efficiency (mne-tools#8185)
  MRG: Trimming Sleep Physionet recordings to avoid W imbalance (mne-tools#8179)
  MRG, BUG: Fix montage plotting, deduplication, and preload check (mne-tools#8178)
  Test PSD topomap works with NIRS epochs (mne-tools#8180)
  MRG, MAINT: Tweak CI versions (mne-tools#8174)
marsipu pushed a commit to marsipu/mne-python that referenced this pull request Oct 14, 2020
…-tools#8178)

* BUG: Fix montage plotting

* BUG: Better preload error message

* FIX: Deduplicate warning

* FIX: Link

* STY: Rename [ci skip]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants