summaryrefslogtreecommitdiff
path: root/lib/polygon.py
diff options
context:
space:
mode:
authorlim <lim@stsci.edu>2012-05-31 17:07:03 -0400
committerlim <lim@stsci.edu>2012-05-31 17:07:03 -0400
commit31df25ae1622ae39c06e60f7240155d4e22572e7 (patch)
treec7bc1a4e843fb97bc28e1ae2d7762a130747ce35 /lib/polygon.py
parent16ef49875672596443ba2c8f390e2f9753add1e5 (diff)
downloadstsci.sphere-31df25ae1622ae39c06e60f7240155d4e22572e7.tar.gz
lim changed SphericalPolygon.__copy__ and added methods to SkyLine
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17093 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 4e5e26af63393082e5a9baae4f37704f99cd4227
Diffstat (limited to 'lib/polygon.py')
-rw-r--r--lib/polygon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/polygon.py b/lib/polygon.py
index 7e76baa..79f1d64 100644
--- a/lib/polygon.py
+++ b/lib/polygon.py
@@ -39,7 +39,7 @@ polygons on the unit sphere.
from __future__ import division, print_function
# STDLIB
-from copy import copy
+from copy import copy, deepcopy
# THIRD-PARTY
import numpy as np
@@ -89,7 +89,7 @@ class SphericalPolygon(object):
# TODO: Detect self-intersection and fix
def __copy__(self):
- return self.__class__(np.copy(self._points), np.copy(self._inside))
+ return deepcopy(self)
def __repr__(self):
return 'SphericalPolygon(%r, %r)' % (self.points, self.inside)