-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Feature Request] expose original units for each channel in BaseRaw #5607
Comments
you need this for what file format?
|
for EEG:
for MEG it depends a bit. In BIDS, all MEG file formats are accepted (i.e., no restrictions like we have in EEG). So for MEG, we need the requested feature for all file formats, that natively save data in a unit that is different from the one that MNE-Python converts to. |
you need to have this availble in the raw object or just a public function
like read_xxx_header than you can use in mne-bids?
|
both would be fine, but a On the other hand, this would mean many new functions (one per data format), while making the information available in Are you more inclined to having a |
|
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.
|
Listing the lines of the respective data readers, from where the original units could be forwarded to some BrainVisionmne-python/mne/io/brainvision/brainvision.py Lines 690 to 697 in f4096ad
EDFLine 639 in f4096ad
Neuroscan... seems to be a bit more complicated than BrainVision and EDF ... no units, but "sensitivity" and "cal" (=calibration?): Lines 207 to 225 in f7e2a95
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 |
can you give a try to a PR?
|
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: mne-tools/mne-bids#81
The text was updated successfully, but these errors were encountered: