Skip to content

Commit e15cbb6

Browse files
committed
Merge pull request #3934 from JaiPEG/patch-1
fixed wCMD passing None to FLRW
2 parents b19b0ea + 42dcc81 commit e15cbb6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎CHANGES.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ Bug Fixes
477477

478478
- ``astropy.cosmology``
479479

480+
- Fixed wCDM to not ignore the Ob0 parameter on initialization. [#3934]
481+
480482
- ``astropy.io.ascii``
481483

482484
- ``astropy.io.fits``

‎astropy/cosmology/core.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ def __init__(self, H0, Om0, Ode0, w0=-1., Tcmb0=2.725,
19581958
Neff=3.04, m_nu=u.Quantity(0.0, u.eV), Ob0=None, name=None):
19591959

19601960
FLRW.__init__(self, H0, Om0, Ode0, Tcmb0, Neff, m_nu, name=name,
1961-
Ob0=None)
1961+
Ob0=Ob0)
19621962
self._w0 = float(w0)
19631963

19641964
# Please see "Notes about speeding up integrals" for discussion

0 commit comments

Comments
 (0)