minor problem loading fiff file
Laurence Hunt
lhunt at FMRIB.OX.AC.UK
Sun Dec 6 23:47:58 CET 2009
Hi Jan,
Thanks for the example file. It looks like a change was made to
read_header after I initally wrote it, which was to take the
first_samp field from fiff_setup_read_raw (called in read_header), and
make this negative rather than positive (line 817 of read_header).
This is causing read_data to crash.
@Robert, could we either change read_header back, or change read_data
with the amendment suggested by Jan? Basically first_samp (returned by
fiff_setup_read_raw) can be positive or negative, I think depending
upon how the recording is made - but more positive numbers mean
further forward in time, and more negative numbers further backward.
If fieldtrip typically makes nSamplesPre always increase positively as
we go backwards in time, then we would need to make the change Jan
suggested in line 691 of read_data (and anywhere else that depends on
nSamplesPre in the neuromag_mne code).
Cheers,
Laurence
===========================================
Laurence Hunt, DPhil Student
Centre for Functional MRI of the Brain (FMRIB),
University of Oxford
lhunt at fmrib.ox.ac.uk
Phone: (+44)1865-(2)22738
===========================================
On 4 Dec 2009, at 12:24, <Jan.Hirschmann at med.uni-duesseldorf.de> <Jan.Hirschmann at med.uni-duesseldorf.de
> wrote:
> Hi Laurence,
>
> I did not upload my data to the server but I am sending you the
> first few seconds of my file with this mail. For me the error occurs
> with this file, too. With the changes I have suggested everything
> seems fine.
>
> Best,
>
> Jan
>
>
----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20091206/8b90823d/attachment-0002.html>
More information about the fieldtrip
mailing list