[FieldTrip] data browser looking for missing cfg.headerformat

Stephen Whitmarsh stephen.whitmarsh at ki.se
Fri Sep 25 09:06:54 CEST 2015

Hi Stefan,

You haven’t defined the third argument you use in the call to ft_read_header, i.e. cfg.headerformat. You could change it to ‘edf’ I think, or just try to leave it out – pretty sure ft_read_header can figure out the dataformat.


From: fieldtrip-bounces at science.ru.nl [mailto:fieldtrip-bounces at science.ru.nl] On Behalf Of Steph Bickel
Sent: 25 September 2015 06:20
To: fieldtrip at science.ru.nl
Subject: [FieldTrip] data browser looking for missing cfg.headerformat

Hello fieldtrip experts,

I tried plotting an edf file. At line 325 the function ft_read_header seems to expect a field in the config structure that does not exist.
Do you know if I am doing something wrong or if this is a bug?

I am using the current field trip version downloaded from github.

Thank you!


cfg.viewmode = 'vertical';
cfg.continuous ='yes';
cfg.datafile = ‘/data/test.edf';

Reference to non-existent field 'headerformat'.
Error in ft_databrowser (line 325)
  hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150925/e3162923/attachment-0002.html>

More information about the fieldtrip mailing list