Skip to content

Commit

Permalink
TST fix tests for jax
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Oct 8, 2023
1 parent 5f5a841 commit 0281f76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2580,7 +2580,7 @@ def test_fitswcs():
except:
pass

dir = 'fits_files'
dir = os.path.join(os.path.dirname(__file__), 'fits_files')

for tag in test_tags:
file_name, ref_list = references[tag]
Expand Down Expand Up @@ -2688,7 +2688,7 @@ def test_fittedsipwcs():
'ZTF': (0.1, 0.1),
}

dir = 'fits_files'
dir = os.path.join(os.path.dirname(__file__), 'fits_files')

if __name__ == "__main__":
test_tags = all_tags
Expand Down Expand Up @@ -2917,7 +2917,7 @@ def test_fittedsipwcs():
def test_scamp():
"""Test that we can read in a SCamp .head file correctly
"""
dir = 'fits_files'
dir = os.path.join(os.path.dirname(__file__), 'fits_files')
file_name = 'scamp.head'

wcs = galsim.FitsWCS(file_name, dir=dir, text_file=True)
Expand Down Expand Up @@ -3138,7 +3138,7 @@ def test_int_args():

test_tags = all_tags

dir = 'fits_files'
dir = os.path.join(os.path.dirname(__file__), 'fits_files')

for tag in test_tags:
file_name, ref_list = references[tag]
Expand Down Expand Up @@ -3211,7 +3211,7 @@ def test_razero():
import astropy.wcs
import scipy # AstropyWCS constructor will do this, so check now.

dir = 'fits_files'
dir = os.path.join(os.path.dirname(__file__), 'fits_files')
# This file is based in sipsample.fits, but with the CRVAL1 changed to 0.002322805429
file_name = 'razero.fits'
wcs = galsim.AstropyWCS(file_name, dir=dir)
Expand Down

0 comments on commit 0281f76

Please sign in to comment.