[FieldTrip] data browser looking for missing cfg.headerformat
Steph Bickel
bick35 at gmail.com
Sun Sep 27 08:15:13 CEST 2015
Hi Stephen,
thanks for your response, and for spelling my name right :)
The call to ft_read_header happened in the call to ft_databrowser, it wasn’t directly called by me.
But, in the meanwhile, I get passed that point when calling the data browser with cfg.dataset instead of cfg.datafile.
However, I have a new error (see below). The data I am trying to plot is just continuous data that I did not perform any artifact rejection on.
would you have an idea what’s going on?
Thank you!
Stephan
cfg=[];
cfg.continuous = ‘yes’;
cfg.demean = ‘yes’;
raw = ft_preprocessing(cfg,filename)
>> cfg=[];
cfg.viewmode = 'vertical';
cfg.continuous ='yes';
% cfg.dataset = edf ;
ft_databrowser(cfg,raw)
the input is raw data with 105 channels and 1 trials
detected 0 visual artifacts
Error using zeros
Size inputs must be integers.
Error in convert_event>artifact2artvec (line 179)
artvec = zeros(length(artifact), endsample);
Error in convert_event (line 103)
obj = artifact2artvec(obj,endsample);
Error in ft_databrowser (line 511)
artdata.trial{1} = convert_event(artifact, 'boolvec', 'endsample', datendsample); % every artifact is a "channel"
> On Sep 25, 2015, at 12:12 AM, Stephen Whitmarsh <stephen.whitmarsh at ki.se> wrote:
>
> Hi Stephan,
>
> Sorry for misspelling your name – I know how it feels J
>
> Stephen
>
> From: fieldtrip-bounces at science.ru.nl [mailto:fieldtrip-bounces at science.ru.nl] On Behalf Of Stephen Whitmarsh
> Sent: 25 September 2015 09:07
> To: FieldTrip discussion list <fieldtrip at science.ru.nl>
> Subject: Re: [FieldTrip] data browser looking for missing cfg.headerformat
>
> 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.
>
> Cheers,
> Stephen
>
> From: fieldtrip-bounces at science.ru.nl <mailto:fieldtrip-bounces at science.ru.nl> [mailto: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 <mailto: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!
>
> Stephan
>
>
> cfg=[];
> cfg.viewmode = 'vertical';
> cfg.continuous ='yes';
> cfg.datafile = ‘/data/test.edf';
> ft_databrowser(cfg)
>
>
> Reference to non-existent field 'headerformat'.
> Error in ft_databrowser (line 325)
> hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat);
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150926/ada09d90/attachment-0002.html>
More information about the fieldtrip
mailing list