Well, surfing the code I notice that building the BoxcarMapper it uses the max of the duration of the events and this is reasonable to have the same feature length for every event.<div><br></div><div>Solved!</div><div>RG</div>
<div><div><br><div class="gmail_quote">On 23 November 2012 12:25, Roberto Guidotti <span dir="ltr"><<a href="mailto:robbenson18@gmail.com" target="_blank">robbenson18@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear all,<div><br></div><div>I have had a strange problem building a simple eventrelated_dataset. I've loaded my dataset and then I've tried to build up an event related one.</div><div><br></div><div>>> events =  find_events(chunks = ds.sa.chunks, targets = ds.sa.targets)</div>

<div>>> evds = eventrelated_dataset(ds, events=events)</div><div><br></div><div>ValueError: Illegal box (start: 656, offset: 0, length: 7) with total input sample being 660.</div><div><br></div><div>but the last events are:</div>

<div><br></div><div><div> {'chunks': 5.0, 'duration': 7, 'onset': 638, 'targets': 'condition1'},</div><div> {'chunks': 5.0, 'duration': 4, 'onset': 645, 'targets': 'fixation'},</div>

<div> {'chunks': 5.0, 'duration': 7, 'onset': 649, 'targets': 'condition2'},</div><div> {'chunks': 5.0, 'duration': 4, 'onset': 656, 'targets': 'fixation'}</div>

</div><div><br></div><div>Trying to build the dataset with events[:-1] it works, so it is indipendent from the durations, I mean that the events duration could be not equal.</div><div><br></div><div>Thank you</div><span class="HOEnZb"><font color="#888888"><div>
Roberto</div>
<div><br></div>
</font></span></blockquote></div><br></div></div>