Skip to content

Conversation

@agramfort
Copy link
Member

closes #2878
closes #2879

@larsoner
Copy link
Member

Heh, I was just about to take this over

@agramfort
Copy link
Member Author

agramfort commented Feb 26, 2016 via email

@larsoner
Copy link
Member

LGTM, will merge once the CIs are happy.

Now stop messing around, take over #2838, decide it's too much work to get right, and merge my "solution" :)

@agramfort
Copy link
Member Author

ok boss ...

On Fri, Feb 26, 2016 at 4:32 PM, Eric Larson notifications@github.com
wrote:

LGTM, will merge once the CIs are happy.

Now stop messing around, take over #2838
#2838, decide it's too much
work to get right, and merge my "solution" :)


Reply to this email directly or view it on GitHub
#2955 (comment)
.

unit_old = self.info['chs'][c_ind]['unit']
unit_new = _human2unit[ch_type]
if unit_old not in _unit2human:
raise ValueError("Channel '%s' has unknown unit (%s). Please fix"
Copy link
Member

Choose a reason for hiding this comment

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

line too long :(

@larsoner
Copy link
Member

(I'll push to your branch)

@agramfort
Copy link
Member Author

thx

merge when green

larsoner added a commit that referenced this pull request Feb 26, 2016
ENH : better error message when unit is not known
@larsoner larsoner merged commit b92ef15 into mne-tools:master Feb 26, 2016
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.

Warning message in set_channel_types causes KeyError

2 participants