[pymvpa] eventrelated_dataset bug

Jörg Stadler Stadler at ifn-magdeburg.de
Thu Jun 21 06:52:32 UTC 2012


Hi.
I tried to create a eventrelated dataset from my experiment with
different block durations and run into a problem.

ds = dataset_wizard(np.ones((5,1)))
t=[1,2,2,3,4]
c=[1,1,1,1,1]
events=find_events(targets=t, chunks=c)
ev=eventrelated_dataset(ds,events=events)

will cause an error:
ValueError: Illegal box (start: 4, offset: 0, length: 2) with total
input sample being 5.

The boxlength is always the maximum value of all event blocks.

Cheers,
Joerg



More information about the Pkg-ExpPsy-PyMVPA mailing list