Social-Evolution-and-Behavior / anTraX

anTraX: high throughput tracking of color-tagged insects
https://antrax.readthedocs.io/
GNU General Public License v3.0
17 stars 3 forks source link

MATLAB:nonLogicalConditional during export #29

Open Giacomoalciatore opened 3 years ago

Giacomoalciatore commented 3 years ago

Hello, I ran into a problem while attempting to export antdata results. Launching the 3rd step of the solve function, both tracklets_tables and xy.mat files are created, but not xy.csv files. The error in the log is the following:

23:10:50 -I- Reading video information from file
23:10:54 -I- Loading trgraph from antrax_HD32_camtag6/graphs/C5/graph_1_1.mat
23:10:57 -I- Finished loading trgraph with 1291 tracklets
23:10:57 -I- Loading tracklet data for movie 1
Operands to the || and && operators must be convertible to logical scalar values.
Error in trgraph/export_xy (line 163)

Error in export_single_movie (line 60)

Error in antrax_mcr_interface (line 42)
MATLAB:nonLogicalConditional

Any idea why this is happening? thanks!

Giacomo

asafgal commented 3 years ago

Not sure. Can you paste the antrax command you are running? Are you using --csv?

On Tue, Sep 14, 2021 at 3:14 PM Giacomoalciatore @.***> wrote:

Hello, I ran into a problem while attempting to export antdata results. Launching the 3rd step of the solve function, both tracklets_tables and xy.mat files are created, but not xy.csv files. The error in the log is the following:

23:10:50 -I- Reading video information from file 23:10:54 -I- Loading trgraph from antrax_HD32_camtag6/graphs/C5/graph_1_1.mat 23:10:57 -I- Finished loading trgraph with 1291 tracklets 23:10:57 -I- Loading tracklet data for movie 1 Operands to the || and && operators must be convertible to logical scalar values. Error in trgraph/export_xy (line 163)

Error in export_single_movie (line 60)

Error in antrax_mcr_interface (line 42) MATLAB:nonLogicalConditional

Any idea why this is happening? thanks!

Giacomo

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Social-Evolution-and-Behavior/anTraX/issues/29, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACERP5VJ3LDIWVGWKUB6VC3UB44EHANCNFSM5EAAJJDA .

Giacomoalciatore commented 3 years ago

I launched this command on LSF: bsub -n 4 -W 0:30 -J "Solve_c1_v[1-116:1]" -R "rusage[mem=4072]" 'antrax solve /cluster/scratch/User/Experiment/ --movlist $LSB_JOBINDEX --step 3'

And I did not use the --csv flag, but on other computers/antrax versions this command give all 3 different files without problems

asafgal commented 3 years ago

I’ve changed the default behavior some time ago to not writing csv files, as they can be very big, so it worthwhile to try running it with the flag. Anyhow, it should not throw an error in that case, just not write the files. I’ll try taking a look at it later.

On 14 Sep 2021, at 15:52, Giacomoalciatore @.***> wrote:

I launched this command on LSF: bsub -n 4 -W 0:30 -J "Solve_c1_v[1-116:1]" -R "rusage[mem=4072]" 'antrax solve /cluster/scratch/User/Experiment/ --movlist $LSB_JOBINDEX --step 3'

And I did not use the --csv flag, but on other computers/antrax versions this command give all 3 different files without problems

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Social-Evolution-and-Behavior/anTraX/issues/29#issuecomment-919120409, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACERP5SGW3NAUJNVIKHQHP3UB5ASRANCNFSM5EAAJJDA.

Giacomoalciatore commented 3 years ago

Ok, thanks! So maybe it's two separate issues

Giacomoalciatore commented 3 years ago

Even using the --csv option I didn't get any xy.csv files, and the error in the log file is always the same!