Fix bug with incorrect argument ordering in power spectrum fns
@@ -4,11 +4,11 @@ from pyutils import _vectorize_fn, _vectorize_fn2
def linear_matter_power(cosmo, a, k):
return _vectorize_fn2(lib.linear_matter_power,
- lib.linear_matter_power_vec, cosmo, a, k)
+ lib.linear_matter_power_vec, cosmo, k, a)
def nonlin_matter_power(cosmo, a, k):
return _vectorize_fn2(lib.nonlin_matter_power,
- lib.nonlin_matter_power_vec, cosmo, a, k)
+ lib.nonlin_matter_power_vec, cosmo, k, a)
def sigmaR(cosmo, R):
return _vectorize_fn(lib.sigmaR,
