Coverage for tests/testDustMap.py : 52%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
def tearDownClass(cls): sims_clean_up()
""" Test that we can create the dustmap"""
# Test that we can load without error dustmap = EBV.EBVbase() dustmap.load_ebvMapNorth() dustmap.load_ebvMapSouth()
# Test the interpolation ra = np.array([0., 0., np.radians(30.)]) dec = np.array([0., np.radians(30.), np.radians(-30.)])
ebvMap = dustmap.calculateEbv(equatorialCoordinates=np.array([ra, dec]), interp=False) assert(np.size(ebvMap) == np.size(ra))
lsst.utils.tests.init()
lsst.utils.tests.init() unittest.main() |