Skip to content

Commit

Permalink
fix head tail detection condition on animalB
Browse files Browse the repository at this point in the history
  • Loading branch information
fdechaumont committed Oct 4, 2022
1 parent bb86232 commit 12b3af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LMT/lmtanalysis/BuildEventFollowZone.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def reBuildEvent( connection, file, tmin=None, tmax=None, pool = None ):
for time in range( t-15, t+1, 2):
#time = t
try:
if not pool.animalDictionnary[idAnimalB].getDetectionAt( time ).isHeadAndTailDetected():
if pool.animalDictionnary[idAnimalB].getDetectionAt( time ).isHeadAndTailDetected():
angleB = pool.animalDictionnary[idAnimalB].getDirection(time)
if ( checkZone( dicA[t].massX, dicA[t].massY, angleA, meanSizeB, dicB[time].massX, dicB[time].massY, angleB ) == True):

Expand Down

0 comments on commit 12b3af5

Please sign in to comment.