def test_coadd1d_2(): """ Test combining Echelle """ # NOTE: flux_value is False parfile = 'coadd1d.par' if os.path.isfile(parfile): os.remove(parfile) coadd_ofile = data_path('pisco_coadd.fits') if os.path.isfile(coadd_ofile): os.remove(coadd_ofile) coadd_ifile = data_path('gemini_gnirs_32_sb_sxd.coadd1d') coadd_1dspec.main( coadd_1dspec.parse_args( [coadd_ifile, '--test_spec_path', data_path('')])) hdu = io.fits_open(coadd_ofile) assert hdu[1].header['EXT_MODE'] == 'OPT' assert hdu[1].header['FLUXED'] is False # Clean up hdu.close() os.remove(parfile) os.remove(coadd_ofile)
def test_coadd1d_1(): """ Test basic coadd using shane_kast_blue """ # NOTE: flux_value is False parfile = 'coadd1d.par' if os.path.isfile(parfile): os.remove(parfile) coadd_ofile = data_path('J1217p3905_coadd.fits') if os.path.isfile(coadd_ofile): os.remove(coadd_ofile) coadd_ifile = data_path('shane_kast_blue.coadd1d') coadd_1dspec.main( coadd_1dspec.parse_args( [coadd_ifile, '--test_spec_path', data_path('')])) hdu = io.fits_open(coadd_ofile) assert hdu[1].header['EXT_MODE'] == 'OPT' assert hdu[1].header['FLUXED'] is False # Clean up hdu.close() os.remove(parfile) os.remove(coadd_ofile)