From 7a44bce6fce29e1aa35007cf1a97b0747106c104 Mon Sep 17 00:00:00 2001 From: Colm Talbot Date: Fri, 17 May 2024 12:30:11 -0400 Subject: [PATCH] BUG: pass missing argument --- wcosmo/wcosmo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcosmo/wcosmo.py b/wcosmo/wcosmo.py index 40bcbc1..53b2b8e 100644 --- a/wcosmo/wcosmo.py +++ b/wcosmo/wcosmo.py @@ -280,7 +280,7 @@ def comoving_distance(z, H0, Om0, w0=-1): comoving_distance: array_like The comoving distance in Mpc """ - integral = analytic_integral(z, Om0=Om0) - analytic_integral(0, Om0=Om0, w0=w0) + integral = analytic_integral(z, Om0=Om0, w0=w0) - analytic_integral(0, Om0=Om0, w0=w0) return integral * hubble_distance(H0)