diff options
author | lim <lim@stsci.edu> | 2012-05-31 14:53:10 -0400 |
---|---|---|
committer | lim <lim@stsci.edu> | 2012-05-31 14:53:10 -0400 |
commit | 16ef49875672596443ba2c8f390e2f9753add1e5 (patch) | |
tree | e2792f7c62fa58567239d06feec9b3d3f53a25a6 /lib/polygon.py | |
parent | 3e2fe4de6714b51045e4d2334a8739b13102e567 (diff) | |
download | stsci.sphere-16ef49875672596443ba2c8f390e2f9753add1e5.tar.gz |
lim replaced relative imports and updated skyline
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17091 fe389314-cf27-0410-b35b-8c050e845b92
Former-commit-id: 7238698a4856c8b46a93aafb4960c90e3f44fe92
Diffstat (limited to 'lib/polygon.py')
-rw-r--r-- | lib/polygon.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/polygon.py b/lib/polygon.py index 8388e2a..7e76baa 100644 --- a/lib/polygon.py +++ b/lib/polygon.py @@ -45,10 +45,8 @@ from copy import copy import numpy as np # LOCAL -#from . import great_circle_arc -#from . import vector -import great_circle_arc -import vector +from sphere import great_circle_arc +from sphere import vector __all__ = ['SphericalPolygon'] @@ -93,6 +91,9 @@ class SphericalPolygon(object): def __copy__(self): return self.__class__(np.copy(self._points), np.copy(self._inside)) + def __repr__(self): + return 'SphericalPolygon(%r, %r)' % (self.points, self.inside) + @property def points(self): """ |