fixed missing variable in pyccl test
@@ -141,13 +141,13 @@ def check_massfunc(cosmo):
mhalo_arr = np.array([1e11, 1e12, 1e13, 1e14, 1e15, 1e16])
# massfunc
- assert_( all_finite(ccl.massfunc(cosmo, mhalo_scl, a)) )
- assert_( all_finite(ccl.massfunc(cosmo, mhalo_lst, a)) )
- assert_( all_finite(ccl.massfunc(cosmo, mhalo_arr, a)) )
+ assert_( all_finite(ccl.massfunc(cosmo, mhalo_scl, a, odelta)) )
+ assert_( all_finite(ccl.massfunc(cosmo, mhalo_lst, a, odelta)) )
+ assert_( all_finite(ccl.massfunc(cosmo, mhalo_arr, a, odelta)) )
- assert_raises(TypeError, ccl.massfunc, cosmo, mhalo_scl, a_arr)
- assert_raises(TypeError, ccl.massfunc, cosmo, mhalo_lst, a_arr)
- assert_raises(TypeError, ccl.massfunc, cosmo, mhalo_arr, a_arr)
+ assert_raises(TypeError, ccl.massfunc, cosmo, mhalo_scl, a_arr, odelta)
+ assert_raises(TypeError, ccl.massfunc, cosmo, mhalo_lst, a_arr, odelta)
+ assert_raises(TypeError, ccl.massfunc, cosmo, mhalo_arr, a_arr, odelta)
# massfunc_m2r
assert_( all_finite(ccl.massfunc_m2r(cosmo, mhalo_scl)) )
