From 16ef49875672596443ba2c8f390e2f9753add1e5 Mon Sep 17 00:00:00 2001 From: lim Date: Thu, 31 May 2012 18:53:10 +0000 Subject: 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 --- lib/polygon.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/polygon.py') 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): """ -- cgit