diff options
author | bsimon <bsimon@stsci.edu> | 2015-03-12 11:18:06 -0400 |
---|---|---|
committer | bsimon <bsimon@stsci.edu> | 2015-03-12 11:18:06 -0400 |
commit | bc05cd7bf62b2a7dba09ddf8ecbd770c094a76a8 (patch) | |
tree | 708cf98e952acc93c46740a781ca699b9ff2d217 | |
parent | 9edda1dbfe1e73f8ba74765ae03ad617bf1f3b7b (diff) | |
download | stsci.sphere-bc05cd7bf62b2a7dba09ddf8ecbd770c094a76a8.tar.gz |
Replaced xrange with range for Python 3 compatibility
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci.sphere/trunk@38256 fe389314-cf27-0410-b35b-8c050e845b92
Former-commit-id: caac9e74b9cb16ae09e5ed110492012ee1aa40dc
-rw-r--r-- | stsci/sphere/test/test_intersection.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stsci/sphere/test/test_intersection.py b/stsci/sphere/test/test_intersection.py index 92a3413..e837512 100644 --- a/stsci/sphere/test/test_intersection.py +++ b/stsci/sphere/test/test_intersection.py @@ -228,7 +228,7 @@ def test_ordering(): [3.532883212044564125e-01, 6.354215160430938258e-01, -6.866053153377369433e-01]) areas = [] - for i in xrange(nrepeat): + for i in range(nrepeat): C = A.intersection(B) areas.append(C.area()) areas = np.array(areas) @@ -243,7 +243,7 @@ def test_ordering(): Aareas = [] Bareas = [] Careas = [] - for i in xrange(nrepeat): + for i in range(nrepeat): AS = roll_polygon(A, i) BS = roll_polygon(B, i) @@ -253,7 +253,7 @@ def test_ordering(): Bareas.append(B.area()) Careas.append(C.area()) - for j in xrange(nrepeat): + for j in range(nrepeat): CS = roll_polygon(C, j) Careas.append(CS.area()) |