robertoostenveld/bids-tools

repeated channel name

Closed this issue · 1 comments

HEOG = 11 # Horizontal EOG

Hi Robert,
the /lib/pybids/channels.py lines 18-19 has different channel number but equal name (HEOG). This creates the following errror when I try to convert the workshop dataset to BIDS:

dlozano@IBP10091:~$ $BIDSTOOLS/create_sidecar_files -f --description $BIDSROOT # create the dataset_description.json file
Traceback (most recent call last):
File "/media/dlozano/Data/matlab/bids-tools/bin/create_sidecar_files", line 46, in
from pybids import channels
File "/media/dlozano/Data/matlab/bids-tools/bin/../lib/pybids/channels.py", line 8, in
class type(Enum):
File "/media/dlozano/Data/matlab/bids-tools/bin/../lib/pybids/channels.py", line 19, in type
HEOG = 12 # Horizontal ElectroOculoGram (eyes)
File "/home/dlozano/anaconda3/lib/python3.6/enum.py", line 92, in setitem
raise TypeError('Attempted to reuse key: %r' % key)
TypeError: Attempted to reuse key: 'HEOG'

Shall I delete one of them?

So far, the bash finishes commenting L11. I'll check later what's going on