From ce66e5047a768568060e9864d9f9485e0a329198 Mon Sep 17 00:00:00 2001 From: Chun Ly Date: Tue, 9 Jun 2020 17:12:05 -0700 Subject: [PATCH] balmer.HbHgHd_fits: Fix file path to provide absolute one (iss #10) --- Metallicity_Stack_Commons/plotting/balmer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Metallicity_Stack_Commons/plotting/balmer.py b/Metallicity_Stack_Commons/plotting/balmer.py index 5aa9dd0..caec85e 100644 --- a/Metallicity_Stack_Commons/plotting/balmer.py +++ b/Metallicity_Stack_Commons/plotting/balmer.py @@ -110,7 +110,7 @@ def HbHgHd_fits(fitspath, out_pdf_prefix='HbHgHd_fits', :param use_revised: Indicate whether to use regular or revised tables (bool) """ - comp_spec_file = filename_dict['comp_spec'] + comp_spec_file = join(fitspath, filename_dict['comp_spec']) stack2D, header = fits.getdata(comp_spec_file, header=True) wave = header['CRVAL1'] + header['CDELT1']*np.arange(header['NAXIS1'])