Skip to content

using units in channels.tsv in read_raw_bids ? #1044

@agramfort

Description

@agramfort

playing with ds003775 I see that units say the data in the edf file are in uV but it's read by read_raw_bids as V.

openneuro-py download --dataset=ds003775 --include=sub-001
import mne
from mne_bids import BIDSPath, read_raw_bids

bp = BIDSPath(
    root='./ds003775',
    subject='001',
    task='resteyesc',
    datatype='eeg',
    session='t1',
    suffix='eeg',
    extension='.edf',
)

raw = read_raw_bids(bp)
# raw = mne.io.read_raw(bp)
raw.load_data()
# raw.apply_function(lambda x: x * 1e-6)
raw.plot()

I saw the pb with: https://output.circle-artifacts.com/output/job/869cb730-d785-46aa-9c16-afc668bf6b70/artifacts/0/site/examples/ds003775/sub-010_ses-t1_task-resteyesc_report.html from mne-tools/mne-bids-pipeline#585

@sappelhoff @hoechenberger any idea? can I consider the edf files broken? as mne.io.read_raw_edf screws up also the units

🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions