[FieldTrip] Data browser trouble
Per Knutsen
knutsenpm at gmail.com
Fri Oct 14 11:08:44 CEST 2016
Oops, seems I was too quick to ask for help. I traced the error to my trial
definitions which were not specified as integer samples. That led to the
"Size inputs must be integers" error below.
Might it be an idea to place a check for integer values in cfg.trl when
passed to ft_redefinetrial()?
- Per
On Fri, Oct 14, 2016 at 10:43 AM, Per Knutsen <knutsenpm at gmail.com> wrote:
> Hi,
> My calls to ft_databrowser([], data) is failing with:
>
> >the input is raw data with 16 channels and 10 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 535)
> >artdata.trial{1} = convert_event(artifact, 'boolvec', 'endsample',
> datendsample); % every >artifact is a "channel"
>
> I am not certain if this is triggered by a lack of artifacts in my data,
> that my data structure is missing information, or that the code does not
> allow for "zero artifacts" by design.
>
> Here is my data structure:
>
> data =
> hdr: [1x1 struct]
> fsample: 4800
> sampleinfo: [10x2 double]
> trial: {1x10 cell}
> time: {1x10 cell}
> label: {16x1 cell}
> cfg: [1x1 struct]
>
> My data is loaded through a custom reader as the data format I have is not
> supported natively by fieldtrip.
>
> I have succeeded in pre processing the data with ft_redefinetrial() and
> ft_preprocessing().
>
> Any ideas?
>
>
> *Per M Knutsen*
> University of Oslo
> Dept. of Molecular Medicine, Physiology Sect.
> PB 1103 Blindern, NO-0317 Oslo
> +47.45103762
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20161014/b00cfabd/attachment-0002.html>
More information about the fieldtrip
mailing list