mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python
https://mne.tools
BSD 3-Clause "New" or "Revised" License
2.72k stars 1.32k forks source link

Unit of measure for raw data in mne.io.RawArray #3970

Closed kaczmarj closed 7 years ago

kaczmarj commented 7 years ago

I am trying to load EEG data from a numpy array into an mne.io.RawArray object. What is the correct unit of measure for the data in the array? Volts? I looked through the source for mne.create_info, and it looks like the unit should be volts. Can anyone confirm?

Thank you.

larsoner commented 7 years ago

Yes volts. Do you have time to open a PR to clarify the documentation for the next person?

kaczmarj commented 7 years ago

I could do that. Because a class like RawArray can accept more than just EEG data, how would you suggest I add the proper unit of measure to the documentation?

larsoner commented 7 years ago

Probably a bulleted list. To keep it slightly shorter, you can organize it by type:

* V: eeg, eog, seeg, emg, ecg, bio, ecog
* T: mag
* T/m: grad
* M: hbo, hbr
* Am: dipole
* AU: misc

And I guess it should probably go in create_info, too / instead of RawArray?

kaczmarj commented 7 years ago

Thanks. I think it would make sense to include that list in the docstring of each *Array class, and in the notes of create_info.

larsoner commented 7 years ago

Sounds good to me

agramfort commented 7 years ago

this tutorial should be edited too:

http://martinos.org/mne/stable/auto_tutorials/plot_creating_data_structures.html

kaczmarj commented 7 years ago

To edit that tutorial, would I edit https://github.com/mne-tools/mne-python/blob/master/tutorials/plot_creating_data_structures.py ?

agramfort commented 7 years ago

yes exactly