Skip to content

Commit aa676ed

Browse files
author
Alex Conley
committed
PEP8ify cosmology.core
1 parent ddbb3e2 commit aa676ed

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎astropy/cosmology/core.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def _namelead(self):
253253
return "{0}(".format(self.__class__.__name__)
254254
else:
255255
return "{0}(name=\"{1}\", ".format(self.__class__.__name__,
256-
self.name)
256+
self.name)
257257

258258
def __repr__(self):
259259
retstr = "{0}H0={1:.3g}, Om0={2:.3g}, Ode0={3:.3g}, "\
@@ -1537,6 +1537,7 @@ def __repr__(self):
15371537
return retstr.format(self._namelead(), self._H0, self._Om0,
15381538
self._Tcmb0, self._Neff, self.m_nu)
15391539

1540+
15401541
class wCDM(FLRW):
15411542
"""FLRW cosmology with a constant dark energy equation of state
15421543
and curvature.
@@ -1844,6 +1845,7 @@ def __repr__(self):
18441845
return retstr.format(self._namelead(), self._H0, self._Om0, self._w0,
18451846
self._Tcmb0, self._Neff, self.m_nu)
18461847

1848+
18471849
class w0waCDM(FLRW):
18481850
"""FLRW cosmology with a CPL dark energy equation of state and curvature.
18491851
@@ -1983,6 +1985,7 @@ def __repr__(self):
19831985
self._Ode0, self._w0, self._wa,
19841986
self._Tcmb0, self._Neff, self.m_nu)
19851987

1988+
19861989
class Flatw0waCDM(w0waCDM):
19871990
"""FLRW cosmology with a CPL dark energy equation of state and no curvature.
19881991
@@ -2053,6 +2056,7 @@ def __repr__(self):
20532056
return retstr.format(self._namelead(), self._H0, self._Om0, self._w0,
20542057
self._Tcmb0, self._Neff, self.m_nu)
20552058

2059+
20562060
class wpwaCDM(FLRW):
20572061
"""FLRW cosmology with a CPL dark energy equation of state, a pivot
20582062
redshift, and curvature.
@@ -2211,6 +2215,7 @@ def __repr__(self):
22112215
self._Ode0, self._wp, self._wa, self._zp,
22122216
self._Tcmb0, self._Neff, self.m_nu)
22132217

2218+
22142219
class w0wzCDM(FLRW):
22152220
"""FLRW cosmology with a variable dark energy equation of state
22162221
and curvature.

0 commit comments

Comments
 (0)