Skip to content

Commit

Permalink
blarg, did not actually fix the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
moustakas committed Dec 5, 2024
1 parent 61312a5 commit 6d30d34
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions py/fastspecfit/test/test_fastspecfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
def filenames(outdir):
from importlib import resources

reduxdir = resources.files('fastspecfit').joinpath('test/data')
redux_dir = resources.files('fastspecfit').joinpath('test/data')
specproddir = resources.files('fastspecfit').joinpath('test/data')
mapdir = resources.files('fastspecfit').joinpath('test/data')
fphotodir = resources.files('fastspecfit').joinpath('test/data')
redrockfile = resources.files('fastspecfit').joinpath('test/data/redrock-4-80613-thru20210324.fits')
fastspec_outfile = os.path.join(outdir, 'fastspec.fits')
fastphot_outfile = os.path.join(outdir, 'fastphot.fits')

filenames = {'reduxdir': reduxdir, 'specproddir': specproddir, 'mapdir': mapdir,
'fphotodir': fphotodir, 'redrockfile': redrockfile,
'fastspec_outfile': fastspec_outfile,
filenames = {'redux_dir': redux_dir, 'specproddir': specproddir,
'mapdir': mapdir, 'fphotodir': fphotodir,
'redrockfile': redrockfile, 'fastspec_outfile': fastspec_outfile,
'fastphot_outfile': fastphot_outfile, }

yield filenames
Expand All @@ -36,6 +36,7 @@ def test_fastphot(filenames, templates):

cmd = f'fastphot {filenames["redrockfile"]} -o {outfile} ' + \
f'--mapdir {filenames["mapdir"]} --fphotodir {filenames["fphotodir"]} ' + \
f'--redux_dir {filenames["redux_dir"]} ' + \
f'--specproddir {filenames["specproddir"]} --templates {templates}'

args = parse(options=cmd.split()[1:])
Expand All @@ -57,6 +58,7 @@ def test_fastspec(filenames, templates):
outfile = filenames["fastspec_outfile"]

cmd = f'fastspec {filenames["redrockfile"]} -o {outfile} ' + \
f'--redux_dir {filenames["redux_dir"]} ' + \
f'--mapdir {filenames["mapdir"]} --fphotodir {filenames["fphotodir"]} ' + \
f'--specproddir {filenames["specproddir"]} --templates {templates}'

Expand Down

0 comments on commit 6d30d34

Please sign in to comment.