def test_display_sky_maps_singlemode(self): ag = AGAnalysis(self.agilepyconfPath, self.sourcesconfPath) _ = ag.generateMaps() maps = ag.displayCtsSkyMaps(saveImage=True) for m in maps: self.assertEqual(True, os.path.isfile(m)) maps = ag.displayExpSkyMaps(saveImage=True) for m in maps: self.assertEqual(True, os.path.isfile(m)) maps = ag.displayGasSkyMaps(saveImage=True) for m in maps: self.assertEqual(True, os.path.isfile(m)) ag.destroy()
def test_saving_sky_maps_singlemode(self): test_out_dir = self.set_outputfolder("test_saving_sky_maps_singlemode") ag = AGAnalysis(self.agilepyConf, self.sourcesConfTxt) _ = ag.generateMaps() maps = ag.displayCtsSkyMaps(saveImage=True) for m in maps: self.assertEqual(True, os.path.isfile(m)) maps = ag.displayExpSkyMaps(saveImage=True) for m in maps: self.assertEqual(True, os.path.isfile(m)) maps = ag.displayGasSkyMaps(saveImage=True) for m in maps: self.assertEqual(True, os.path.isfile(m)) ag.destroy()
def test_saving_sky_maps(self): test_out_dir = self.set_outputfolder("test_saving_sky_maps") ag = AGAnalysis(self.agilepyConf, self.sourcesConfTxt) ag.setOptions(tmin = 433857532, tmax = 433857732, timetype = "TT") _ = ag.generateMaps() maps = ag.displayCtsSkyMaps(singleMode=False, saveImage=True) for m in maps: self.assertEqual(True, os.path.isfile(m)) maps = ag.displayExpSkyMaps(singleMode=False, saveImage=True) for m in maps: self.assertEqual(True, os.path.isfile(m)) maps = ag.displayGasSkyMaps(singleMode=False, saveImage=True) for m in maps: self.assertEqual(True, os.path.isfile(m)) ag.destroy()