Skip to content

Weird EEGDash dataset object behavior #23

@arnodelorme

Description

@arnodelorme
ds_sexdata = EEGDashDataset({'dataset': 'ds005510', 'task': 'RestingState'}, target_name='sex') 
tmp1 = ds_sexdata[0].getitem()
tmp2 = ds_sexdata[0].getitem()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[16], [line 1](vscode-notebook-cell:?execution_count=16&line=1)
----> [1](vscode-notebook-cell:?execution_count=16&line=1) tmp = ds_sexdata[0].getitem()

AttributeError: 'tuple' object has no attribute 'getitem'

The call for tmp1 works, but not the call for tmp2. The ds_sexdata object is being modified by the first call and transformed to a tuple.

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