Mercurial Hosting > traffic-intelligence
comparison python/utils.py @ 16:9d6831cfe675
added tools for speed
author | Nicolas Saunier <nico@confins.net> |
---|---|
date | Wed, 18 Nov 2009 18:36:52 -0500 |
parents | e7bbe8465591 |
children | 5a21d2cfee44 |
comparison
equal
deleted
inserted
replaced
14:e7bbe8465591 | 16:9d6831cfe675 |
---|---|
80 projected[1] /= projected[2] | 80 projected[1] /= projected[2] |
81 else: | 81 else: |
82 projected = p | 82 projected = p |
83 return projected[:2] | 83 return projected[:2] |
84 | 84 |
85 | 85 def printPoint(x,y): |
86 return '(%f,%f)'%(x,y) | |
86 | 87 |
87 if __name__ == "__main__": | 88 if __name__ == "__main__": |
88 import doctest | 89 import doctest |
89 import unittest | 90 import unittest |
90 #suite = doctest.DocFileSuite('tests/ubc_utils.txt') | 91 #suite = doctest.DocFileSuite('tests/ubc_utils.txt') |