>
> No specific reason for the length, just shorter than whole file. The problem is that reading can only happen every recording period so your slice has to be a multiple of the sampling frequency.
>
>
do we agree that seg is in samples (integers) not in seconds right? I don't
get why the sample rate matters.

although, i just had the idea, I could always load the whole sampling
> period of the time period of interest then after reading, do the proper
> slicing. @agramfort <https://github.com/agramfort> would that work better?
>
the fiff reading code reads all the data buffers containing the slice and
then slices correctly.
I think it's what you suggest.