-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hi, I am trying this package for the first time and I love the idea!
However, when I try to execute the simple example provided in the docs, I am not getting the expected behavior. I am running the following code:
from eegdash import EEGDashDataset
# Initialize the dataset for ds002718
dataset1 = EEGDashDataset(
cache_dir="./eegdash_data",
dataset="ds002578",
)
print(f"Found {len(dataset1)} recordings in the dataset.")The download and object creation happens properly, but I then get the following output:
Found 2681856 recordings in the dataset.
However, this dataset only has 2 recordings as far as I can tell from the dataset description.
When I check what is in dataset1[0] I get the following tuple:
(array([[-4.45248867e-02],
[ 9.69388770e-03],
[-1.64184707e-02],
[-1.32149141e-02],
[-2.24667383e-02],
[-2.18126797e-02],
[-1.44057871e-02],
...
[-1.43454434e-02],
[-1.42543809e-02],
[-2.33618008e-02],
[-2.59308281e-02]]),
None)
I think everytime I index in the dataset, I am getting a separate timestamp but I don't know from what recording and how to properly use that object. It is also unclear what the None corresponds to. I imagine its supposed to be a label of some kind but not sure how to set it to the actual behavior present in the dataset.
The returned object is of type eegdash.dataset.dataset.EEGDashDataset and I am running version 0.5.0 with python 3.13.5.
Is that the expected behavior? If so, how can I get each recordings from this object?
Thanks in advance for your help!