From 8e6b72470bd7ce8a709b2538e4cd2becd16154ae Mon Sep 17 00:00:00 2001 From: lim Date: Mon, 21 May 2012 18:19:51 +0000 Subject: lim fixed tests that failed because of image de-compression on SVN git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@16923 fe389314-cf27-0410-b35b-8c050e845b92 Former-commit-id: 4bf54e5d84f6f6984ce3ad70ed05b1e048de6f02 --- lib/test/benchmarks.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/test/benchmarks.py') diff --git a/lib/test/benchmarks.py b/lib/test/benchmarks.py index 9711d7b..91ef8db 100644 --- a/lib/test/benchmarks.py +++ b/lib/test/benchmarks.py @@ -5,14 +5,14 @@ import time import numpy as np from sphere import * from test_util import * +from test_shared import resolve_imagename def point_in_poly_lots(): - poly1 = SphericalPolygon.from_wcs( - os.path.join(ROOT_DIR, '1904-66_TAN.fits'), 64, crval=[0, 87]) - poly2 = SphericalPolygon.from_wcs( - os.path.join(ROOT_DIR, '1904-66_TAN.fits'), 64, crval=[20, 89]) - poly3 = SphericalPolygon.from_wcs( - os.path.join(ROOT_DIR, '1904-66_TAN.fits'), 64, crval=[180, 89]) + image_name = resolve_imagename(ROOT_DIR,'1904-66_TAN.fits') + + poly1 = SphericalPolygon.from_wcs(image_name, 64, crval=[0, 87]) + poly2 = SphericalPolygon.from_wcs(image_name, 64, crval=[20, 89]) + poly3 = SphericalPolygon.from_wcs(image_name, 64, crval=[180, 89]) points = get_point_set(density=25) -- cgit