Advertisement
Guest User

Untitled

a guest
Mar 15th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. From 10d7124204ab880ae2814af644fdc14cfc5bade7 Mon Sep 17 00:00:00 2001
  2. From: Alex Liberzon <alex.liberzon@gmail.com>
  3. Date: Sat, 15 Mar 2014 14:40:33 +0200
  4. Subject: [PATCH] zero length trajectories create errors in post processing.
  5. set min_traj_len to 2 as default.
  6.  
  7. ---
  8. flowtracks/io.py | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10.  
  11. diff --git a/flowtracks/io.py b/flowtracks/io.py
  12. index 94c2719..12dfe98 100644
  13. --- a/flowtracks/io.py
  14. +++ b/flowtracks/io.py
  15. @@ -219,7 +219,7 @@ def trajectories_acc(fname, first=None, last=None):
  16. return trajects
  17.  
  18. def iter_trajectories_ptvis(fname, first=None, last=None, frate=1., xuap=False,
  19. - traj_min_len=0):
  20. + traj_min_len = 2):
  21. """
  22. Extract all trajectories in a directory of ptv_is files, as generated by
  23. programs in the 3d-ptv/pyptv family.
  24. @@ -391,7 +391,7 @@ def iter_trajectories_ptvis(fname, first=None, last=None, frate=1., xuap=False,
  25. yield traj
  26.  
  27. def trajectories_ptvis(fname, first=None, last=None, frate=1., xuap=False,
  28. - traj_min_len=0):
  29. + traj_min_len=2):
  30. """
  31. Extract all trajectories in a directory of ptv_is files, as generated by
  32. programs in the 3d-ptv/pyptv family.
  33. --
  34. 1.8.4.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement