From f7bcfa39c174bf24f27018980143135dc9a8a26b Mon Sep 17 00:00:00 2001 From: mdroe Date: Thu, 7 Jun 2012 17:08:42 +0000 Subject: 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 --- lib/test/test_intersection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/test/test_intersection.py') 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]]) -- cgit