diff options
author | mdroe <mdroe@stsci.edu> | 2012-06-07 13:08:42 -0400 |
---|---|---|
committer | mdroe <mdroe@stsci.edu> | 2012-06-07 13:08:42 -0400 |
commit | f7bcfa39c174bf24f27018980143135dc9a8a26b (patch) | |
tree | 7fef3d178de9b387b2a2b9010c7ff2fe7b5051d8 /lib/test/test_intersection.py | |
parent | 40e93ce69ab8b6181362981250cde7de6f4033ea (diff) | |
download | stsci.sphere-f7bcfa39c174bf24f27018980143135dc9a8a26b.tar.gz |
Make area calculation more accurate by not counting the first point twice when doing centroid calculation
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@17220 fe389314-cf27-0410-b35b-8c050e845b92
Former-commit-id: 1da94015b873da448961df3bc950a6b1a5cd51ae
Diffstat (limited to 'lib/test/test_intersection.py')
-rw-r--r-- | lib/test/test_intersection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/test_intersection.py b/lib/test/test_intersection.py index 7c7dad6..6dacb3d 100644 --- a/lib/test/test_intersection.py +++ b/lib/test/test_intersection.py @@ -71,7 +71,7 @@ class intersection_test: plt.savefig(filename) fig.clear() - assert np.all(intersection_area <= areas) + assert np.all(intersection_area * 0.9 <= areas) lengths = np.array([len(x._points) for x in intersections]) assert np.all(lengths == [lengths[0]]) |