question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in IO module for BrainVision: Wrong conversion from Seconds to Hertz

See original GitHub issue

In BrainVision Recorder *.vhdr files, the highpass filter settings are often listed as “low-cutoff in seconds”. The relevant mne.io function translates this into Hz as such:

https://github.com/mne-tools/mne-python/blob/239c83dfe0686084d1c96c945579dc8cc10e895c/mne/io/brainvision/brainvision.py#L597-L598

With this method, the standard setting of low-cutoff=10s is translated to highpass=0.1Hz. However, the BrainProducts website specifies 0.016Hz (see under “Lower cutoff frequency (high pass) / time constant”).

The conversion from seconds to Hz is probably not implemented correctly in the mne.io function for brainvision. Or am I missing something?

Some references:

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dmedinecommented, Mar 9, 2018

Hello. My name is David Medine and I am a developer at Brain Products. The reason they use a time constant to represent the nature of a filter is for strange, convoluted, historical reasons.

What is important is that sappelhoff is correct. The denominator should have a factor of 2pi in it.

0reactions
larsonercommented, Mar 9, 2018

Thanks for the confirmation @dmedine. Looks like #5000 should be correct, then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's new — MNE 1.2.2 documentation
Fix bug in mne.io.read_raw_brainvision() when BrainVision data are ... (keep time in seconds) instead of time_format='ms' (convert time to ...
Read more >
Bug List
ID△ Product△ Comp▽ Assignee△ Status△ Resolution△ Changed△ 670 EEGLAB Plugin f bugzilla‑owner RESO DUPL 2008‑07‑09 669 EEGLAB Plugin f bugzilla‑owner RESO FIXE 2008‑11‑12 700 EEGLAB Plugin...
Read more >
raveio: File-System Toolbox for RAVE Project
BugReports https://github.com/beauchamplab/raveio/issues ... read-brainvision-eeg . ... install_modules(modules, dependencies = FALSE).
Read more >
OpenViBE Bug Tracker - Inria
BrainVision VAmp can acquire data at 10 or 20 KHz in "fast mode", but even in this mode the only option in OpenViBE...
Read more >
Importing Continuous and Epoched Data - EEGLAB Wiki
File-IO is a Fieldtrip module that imports a variety of data formats. ... build a matrix of random test data (32 channels, 100...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found