Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Can't process TUH Artifact Dataset #30

@lienz

Description

@lienz

Hi,
I'm trying to create the TUH Artifact Dataset as follows:

dataset = TUHEEGArtifactDataset('~/Documents/eeg/tuh_artifact_eeg/edf')
dataset.set_cache_manager(PickleCache('~/Documents/eeg/export'))

preprocessing = Pipeline([
    CommonChannelSet(),
    LowestFrequency(),
    ToDataframe(),
    MinMaxCentralizedNormalization(),
    ToNumpy()
])
dataset = dataset.set_pipeline(preprocessing).load()
data, labels = dataset['data'], dataset['labels']

But it fails with the following message:
ValueError: tmin (600.9454) must be less than tmax (600.9)

I'm using the v2.0.0 of the dataset: https://www.isip.piconepress.com/projects/tuh_eeg/downloads/tuh_eeg_artifact/v2.0.0/edf/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions