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

ENH Brainvision: option to add reference channel #1033

Merged
merged 2 commits into from
Jan 12, 2014

Conversation

christianbrodbeck
Copy link
Member

The Brainvision EEG file does not contain data for the reference channel. However, for re-referencing one would also want to have the reference channel in the data. This patch adds the reference channel as a flat channel.

@christianbrodbeck
Copy link
Member Author

@t3on could you have a look if you have some time?

@@ -453,13 +473,13 @@ def _get_eeg_info(vhdr_fname, elp_fname=None, elp_names=None):

# load channel labels
ch_names = ['UNKNOWN'] * n_chan
cals = np.ones(n_chan) * np.nan
cals = [np.nan] * n_chan
Copy link
Member

Choose a reason for hiding this comment

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

I prefer arrays

Copy link
Member Author

Choose a reason for hiding this comment

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

made an array again

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling a54bf35 on christianmbrodbeck:bv-ref into * on mne-tools:master*.

@christianbrodbeck
Copy link
Member Author

What exactly does this @coveralls message mean? When I run coverage brainvision.py has 89% coverage.

@larsoner
Copy link
Member

larsoner commented Jan 7, 2014

Same idea as Travis, it runs a limits set of tests so it provides a guideline / check (add opposed to substitute for running tests locally).

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling c146610 on christianmbrodbeck:bv-ref into ab27e82 on mne-tools:master.

@teonbrooks
Copy link
Member

hey. i just gave it a review and it looks good to me. do we know why there is a discrepancy between the two coverages?

agramfort added a commit that referenced this pull request Jan 12, 2014
ENH Brainvision:  option to add reference channel
@agramfort agramfort merged commit cc19e48 into mne-tools:master Jan 12, 2014
@agramfort
Copy link
Member

thanks

@t3on there is a discrepancy between travis and your system as travis does not test using the sample data.

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.

None yet

5 participants