Skip to content

Commit 18936c1

Browse files
committed
Update random comparison based on new healsparse (fixed) randoms.
1 parent feacefa commit 18936c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_redmapper_randoms.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ def test_redmapper_randoms(self):
5454

5555
# The distribution was confirmed on a bigger set; this just wants a quick
5656
# check that the numbers match
57-
testing.assert_array_almost_equal(rands.ra[: 3], [140.367948, 140.291156, 141.03190])
58-
testing.assert_array_almost_equal(rands.dec[: 3], [66.272433, 66.013655, 66.121244])
59-
testing.assert_array_almost_equal(rands.z[: 3], [0.090511, 0.296007, 0.365437])
60-
testing.assert_array_almost_equal(rands.Lambda[: 3], [24.473192, 34.282143, 25.60206])
57+
testing.assert_array_almost_equal(rands.ra[: 3], [140.260907, 140.920711, 140.851056])
58+
testing.assert_array_almost_equal(rands.dec[: 3], [65.888083, 66.033431, 65.936919])
59+
testing.assert_array_almost_equal(rands.z[: 3], [0.221394, 0.382162, 0.39954])
60+
testing.assert_array_almost_equal(rands.Lambda[: 3], [22.093416, 35.16693 , 32.436287])
6161

6262
# Run the random points through the zmask code
6363
rand_zmask = RunRandomsZmask(config)
@@ -85,7 +85,7 @@ def test_redmapper_randoms(self):
8585

8686
astr = Catalog.from_fits_file(wt_areafile)
8787
testing.assert_array_less(-0.0001, astr.area)
88-
testing.assert_array_almost_equal(astr.area[100: 103], [0.793, 0.799, 0.804], 3)
88+
testing.assert_array_almost_equal(astr.area[100: 103], [0.992, 0.987, 0.982], 3)
8989

9090
def setUp(self):
9191
self.test_dir = None

0 commit comments

Comments
 (0)