Skip to content

Commit 0281f76

Browse files
committed
TST fix tests for jax
1 parent 5f5a841 commit 0281f76

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_wcs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,7 +2580,7 @@ def test_fitswcs():
25802580
except:
25812581
pass
25822582

2583-
dir = 'fits_files'
2583+
dir = os.path.join(os.path.dirname(__file__), 'fits_files')
25842584

25852585
for tag in test_tags:
25862586
file_name, ref_list = references[tag]
@@ -2688,7 +2688,7 @@ def test_fittedsipwcs():
26882688
'ZTF': (0.1, 0.1),
26892689
}
26902690

2691-
dir = 'fits_files'
2691+
dir = os.path.join(os.path.dirname(__file__), 'fits_files')
26922692

26932693
if __name__ == "__main__":
26942694
test_tags = all_tags
@@ -2917,7 +2917,7 @@ def test_fittedsipwcs():
29172917
def test_scamp():
29182918
"""Test that we can read in a SCamp .head file correctly
29192919
"""
2920-
dir = 'fits_files'
2920+
dir = os.path.join(os.path.dirname(__file__), 'fits_files')
29212921
file_name = 'scamp.head'
29222922

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

31393139
test_tags = all_tags
31403140

3141-
dir = 'fits_files'
3141+
dir = os.path.join(os.path.dirname(__file__), 'fits_files')
31423142

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

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

0 commit comments

Comments
 (0)