-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
In HCP documentation, it is stated that the codes for Motor tasks should be bellow 256. (see page 13 here).
However, loading a subject with hcp gives event ids [ 18 22 34 38 66 70 130 134 274 278 290 294 322 326 386 390]. If you take the modulus 256 on the events, it seems that you recover the proper event ids.
I am not sure if this is a bug in the loading of the event ids or if I am missing something here?
import hcp
import mne
HCP_DIR = "/path/to/HCP/data"
subject="581450"
data_type = "task_motor"
run_index = 1
raw = hcp.read_raw(subject, data_type=data_type, run_index=run_index,
hcp_path=HCP_DIR, verbose=0)
events = mne.find_events(raw)
print(np.unique(events[:, 2] % 256))Trigger channel has a non-zero initial value of 2 (consider using initial_event=True to detect this event)
Removing orphaned offset at the beginning of the file.
694 events found
Event IDs: [ 18 22 34 38 66 70 130 134 274 278 290 294 322 326 386 390]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels