Skip to content

Commit

Permalink
Update track.py
Browse files Browse the repository at this point in the history
Changed typo in “def __compare”
if "Y" in code:
            same = same and (self[k1].position.getX() == self[k2].position.getX())
Changed to 
        if "Y" in code:
            same = same and (self[k1].position.getY() == self[k2].position.getY())
Same change made for Z
  • Loading branch information
JohnAndrewDawson authored Oct 8, 2024
1 parent b995d25 commit 3accee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracklib/core/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,9 +1140,9 @@ def __compare(self, k1, k2, code):
if "X" in code:
same = same and (self[k1].position.getX() == self[k2].position.getX())
if "Y" in code:
same = same and (self[k1].position.getX() == self[k2].position.getX())
same = same and (self[k1].position.getY() == self[k2].position.getY())
if "Z" in code:
same = same and (self[k1].position.getX() == self[k2].position.getX())
same = same and (self[k1].position.getZ() == self[k2].position.getZ())
if "T" in code:
same = same and (self[k1].timestamp - self[k2].timestamp == 0)
if "AF" in code:
Expand Down

0 comments on commit 3accee5

Please sign in to comment.