kristinbranson / JAABA

Janelia Animal Behavior Detector
Other
76 stars 30 forks source link

JAABAplot error with output of PrepareJAABAData #167

Closed arobie closed 11 years ago

arobie commented 11 years ago

When I try to add an experiment /groups/branson/home/robiea/Projects_data/courtship/Exp20130129T171421 prepared with PrepareJAABAData using the ctrax option. I get this error from JAABAPlot: Error using parallel_function (line 589)

Input #2 expected to be a cell array, was double instead.

Error stack: JAABAPlot>(parfor body) at 703

Error in JAABAPlot>ExperimentAdd_Callback (line 699) parfor n=1:length(newexperiments)

Error in gui_mainfcn (line 96) feval(varargin{:});

Error in JAABAPlot (line 39) gui_mainfcn(gui_State, varargin{:});

Error in @(hObject,eventdata)JAABAPlot('ExperimentAdd_Callback',hObject,eventdata,guidata(hObject))

589 throw(err);

arobie commented 11 years ago

Problem is preframe directory with not mat files. Kristin fixed some of the problem, but see commit log for remaining problem(s)

kristinbranson commented 11 years ago

I kind of fixed the error, temporarily. The problem was that this experiment is the raw output of PrepareJAABAData. Alice wanted to use JAABAPlot to run the detectors. There are no per-frame features computed yet in the experiment, so the code was crashing. There is still a problem. The sex.mat file is not created, and we had not yet loaded in any classifiers so that we would know the name of the trx file (or the perframe directory, for that matter). Temporarily, I just set the sex data field to {}. I'm not sure what the correct solution for this is. It may involve adding in this data after the first classifier is added?

bjarthur commented 11 years ago

fixed in commit bc2c0198e2371da172d952883c49012b4c6204b7