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.

[Feature Request] expose original units for each channel in BaseRaw

See original GitHub issue

Upon reading a raw data file, MNE-Python converts the units to e.g., Volts (and others, see here).

It would be good to expose the channel wise units as they are in the original data file within the BaseRaw object.

Concretely, we need this in MNE-BIDS, see: https://github.com/mne-tools/mne-bids/issues/81

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
sappelhoffcommented, Oct 21, 2018

Listing the lines of the respective data readers, from where the original units could be forwarded to some _orig_units attribute.

BrainVision

https://github.com/mne-tools/mne-python/blob/f4096adaf2646da32e6d2f5536e74c14b312ad5f/mne/io/brainvision/brainvision.py#L690-L697

EDF

https://github.com/mne-tools/mne-python/blob/f4096adaf2646da32e6d2f5536e74c14b312ad5f/mne/io/edf/edf.py#L639

Neuroscan

… seems to be a bit more complicated than BrainVision and EDF … no units, but “sensitivity” and “cal” (=calibration?): https://github.com/mne-tools/mne-python/blob/f7e2a95bf01981072c598bb806204e72630b26f6/mne/io/cnt/cnt.py#L207-L225

EEGLAB

… I can’t find a “unit” field in the EEGLAB file structure … it might be that it’s not given and that the units are implicitly thought to all be in microVolts, see: https://sccn.ucsd.edu/pipermail/eeglablist/2014/008004.html

1reaction
agramfortcommented, Oct 14, 2018

ok then. Why not for _orig_units attributes. Note that there is also the cals array that scales the data to V so maybe this can he used too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature requests & bugs - Graphite Documentation
From the Graphite dashboard, click "Feature requests & bugs" in the lower left corner to share a feature request or bug to be...
Read more >
Track Product Feature Requests on Slack with Hellonext
Learn how you can use Slack to track feature requests as a product manager. Collaborate on product feature requests on Slack.
Read more >
New Feature Request - Phalcon Documentation
A NFR is a short document explaining how a new feature request must be submitted, how it can be implemented, and how it...
Read more >
How to Collect and Manage Feature Requests in SaaS
Here's how to manage product feature requests: gather all feedback from your various channels in one platform. classify the product ideas based ...
Read more >
Feature request - I need a feature in Vaex - Vaex.io
We will schedule a video call to discuss the feature. Laden… Designed by vaex.io. Original template by BootstrapMade.
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