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