def test_pix2ring(self): with NumpyRNGContext(12345): nside = 1024 hpx = Healpix(nside) npix = hpx.npix hpx_idx = np.random.random_integers(0, npix - 1, 10000) assert_equal(hp.pix2ring(nside, hpx_idx), hpx.pix2ring_many(hpx_idx))
def test_pix2ring(self): if not DO_HEALPY: # not possible on Windows return with NumpyRNGContext(12345): nside = 1024 hpx = Healpix(nside) npix = hpx.npix hpx_idx = np.random.random_integers(0, npix - 1, 10000) assert_equal(hp.pix2ring(nside, hpx_idx), hpx.pix2ring_many(hpx_idx))
def test_pix2ring(self): if not DO_HEALPY: # not possible on Windows return with NumpyRNGContext(12345): nside = 1024 hpx = Healpix(nside) npix = hpx.npix hpx_idx = np.random.random_integers(0, npix - 1, 10000) assert_equal( hp.pix2ring(nside, hpx_idx), hpx.pix2ring_many(hpx_idx) )