kristinbranson / cbtrack_GUI

Other
0 stars 0 forks source link

wingtracking bug #16

Open allenleetc opened 9 years ago

allenleetc commented 9 years ago

Sweta A reported a bug (see unheatedpassivechase20150917132253_CSP1xtrp_1xsqmag_1_40hz) where tracked wings appear on the opposite side of actual wing extension.

Investigation reveals apparent bugs in wingtracking:

Moreover, in sha 5071a49, Track2FliesWings2.m:Line289 just looks like a bug, those arrays are 3D with size 1 x Nfrm x 4, so the code as written is only swapping the first page/combination of data for each wing PFF, rather than swapping the data for all 4 combinations.

allenleetc commented 9 years ago

Appears fixed, but generally speaking risk in this area is still high due to state of code. Fix tested by fully retracking Sweta experiment and browsing significant/large before/after differences in wingtracking. Improvements confirmed by AR. Awaiting further confirmation from Sweta.