def niriprim2(): file_path = download_from_archive("N20190120S0287.fits") ad = astrodata.open(file_path) ad.append(ad[0]) p = NIRIImage([ad]) p.addDQ() return p
def test_addDQ(self): ad = astrodata.open(os.path.join(TESTDATAPATH, 'NIRI', 'N20070819S0104_prepared.fits')) p = NIRIImage([ad]) ad = p.addDQ()[0] assert ad_compare(ad, os.path.join(TESTDATAPATH, 'NIRI', 'N20070819S0104_dqAdded.fits'))
def test_addDQ(self): ad = astrodata.open( os.path.join(TESTDATAPATH, 'NIRI', 'N20070819S0104_prepared.fits')) p = NIRIImage([ad]) ad = p.addDQ()[0] assert ad_compare( ad, os.path.join(TESTDATAPATH, 'NIRI', 'N20070819S0104_dqAdded.fits'))