Mercurial > hg > nsaunier > traffic-intelligence
diff scripts/compute-clearmot.py @ 1012:01db14e947e4
resolved
| author | Wendlasida |
|---|---|
| date | Fri, 01 Jun 2018 10:47:49 -0400 |
| parents | 933670761a57 |
| children | cc5cb04b04b0 |
line wrap: on
line diff
--- a/scripts/compute-clearmot.py Fri Jun 01 10:43:23 2018 -0400 +++ b/scripts/compute-clearmot.py Fri Jun 01 10:47:49 2018 -0400 @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import sys, argparse from numpy import loadtxt @@ -71,7 +71,7 @@ def shiftMatches(matches, offset): shifted = {} for k in matches: - shifted[k] = {t+offset:v for t, v in matches[k].iteritems()} + shifted[k] = {t+offset:v for t, v in matches[k].items()} return shifted if args.display:
