Skip to content

Commit 1b0a713

Browse files
SUTIENG TamSUTIENG Tam
authored andcommitted
update functions
1 parent 2a133dc commit 1b0a713

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

skypy/halos/_colossus.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ def colossus_mf(redshift, model, mdef, m_min, m_max, sky_area, cosmology,
204204

205205
return z, m
206206

207-
def concentration(mass, mdef, redshift, model, cosmology, sigma8, ns)
208-
"""Halo concentration calculator.
207+
def concentration(mass, mdef, redshift, model, cosmology, sigma8, ns):
208+
r'''Halo concentration calculator.
209209
210210
This function calculates halo concentration(s) using the model of c-M relation
211211
available in colossus.
@@ -234,7 +234,7 @@ def concentration(mass, mdef, redshift, model, cosmology, sigma8, ns)
234234
concentration : float or array_like
235235
Halo concentration(s); has the same dimensions as mass.
236236
237-
"""
237+
'''
238238
from colossus.cosmology.cosmology import fromAstropy
239239
from colossus.halo import concentration
240240

@@ -244,8 +244,8 @@ def concentration(mass, mdef, redshift, model, cosmology, sigma8, ns)
244244

245245
return c
246246

247-
def radius(mass, concentration, redshift, mdef, Delta, cosmology, sigma8, ns)
248-
"""Calculate the scale radius and the spherical overdensity radius of halo by assuming
247+
def radius(mass, concentration, redshift, mdef, Delta, cosmology, sigma8, ns):
248+
r'''Calculate the scale radius and the spherical overdensity radius of halo by assuming
249249
the NFW model.
250250
251251
This function calculates the scale radius and any spherical overdensity radius
@@ -279,7 +279,7 @@ def radius(mass, concentration, redshift, mdef, Delta, cosmology, sigma8, ns)
279279
RDelta : float
280280
Spherical overdensity radius of a given mass definition Delta.
281281
282-
"""
282+
'''
283283
from colossus.cosmology.cosmology import fromAstropy
284284
from colossus.halo import profile_nfw
285285

@@ -293,7 +293,7 @@ def radius(mass, concentration, redshift, mdef, Delta, cosmology, sigma8, ns)
293293

294294

295295
def Delta_Sigma(mass, concentration, redshift, mdef, radius, cosmology, sigma8, ns):
296-
"""The excess surface density at given radius by assuming the NFW model.
296+
r'''The excess surface density at given radius by assuming the NFW model.
297297
298298
This function uses Colossus routines to compute the excess surface density profile,
299299
which is defined as Delta_Sigma(R) = Sigma(<R) − Sigma(R).
@@ -324,7 +324,8 @@ def Delta_Sigma(mass, concentration, redshift, mdef, radius, cosmology, sigma8,
324324
DeltaSigma: float or array_like
325325
The excess surface density at the given radius, in units of h physical Msun/kpc^2;
326326
has the same dimensions as radius.
327-
"""
327+
328+
'''
328329
from colossus.cosmology.cosmology import fromAstropy
329330
from colossus.halo import profile_nfw
330331

0 commit comments

Comments
 (0)