@@ -40,13 +40,6 @@ def angular_size(physical_size, redshift, cosmology):
4040 angular_size : astropy.Quantity
4141 Angular distances in units of [rad] for a given radius.
4242
43- Examples
44- --------
45- >>> from astropy import units
46- >>> from skypy.galaxies.morphology import angular_size
47- >>> from astropy.cosmology import Planck15
48- >>> r = angular_size(10*units.kpc, 1, Planck15)
49-
5043 References
5144 ----------
5245 .. [1] D. W. Hogg, (1999), astro-ph/9905116.
@@ -89,14 +82,6 @@ def beta_ellipticity(e_ratio, e_sum, size=None):
8982 ----------
9083 .. [1] Kacprzak T., Herbel J., Nicola A. et al., arXiv:1906.01018
9184
92- Examples
93- --------
94- Sample 10000 random variates from the Kacprzak model with
95- :math:`e_{\rm ratio} = 0.5` and :math:`e_{\rm sum} = 1.0`:
96-
97- >>> from skypy.galaxies.morphology import beta_ellipticity
98- >>> ellipticity = beta_ellipticity(0.5, 1.0, size=10000)
99-
10085 '''
10186
10287 # convert to beta distribution parameters
@@ -139,17 +124,6 @@ def late_type_lognormal_size(magnitude, alpha, beta, gamma, M0, sigma1, sigma2,
139124 shape is (ns,). If magnitude has shape (nm,) and size=None,
140125 shape is (nm,).
141126
142- Examples
143- --------
144- >>> import numpy as np
145- >>> from skypy.galaxies import morphology
146- >>> magnitude = -16.0
147- >>> alpha, beta, gamma, M0 = 0.21, 0.53, -1.31, -20.52
148- >>> sigma1, sigma2 = 0.48, 0.25
149- >>> s = morphology.late_type_lognormal_size(magnitude, alpha, beta, gamma,
150- ... M0, sigma1, sigma2)
151-
152-
153127 References
154128 ----------
155129 .. [1] S. Shen, H.J. Mo, S.D.M. White, M.R. Blanton, G. Kauffmann, W. Voges,
@@ -200,17 +174,6 @@ def early_type_lognormal_size(magnitude, a, b, M0, sigma1, sigma2, size=None):
200174 shape is (ns,). If magnitude has shape (nm,) and size=None,
201175 shape is (nm,).
202176
203- Examples
204- --------
205- >>> import numpy as np
206- >>> from skypy.galaxies import morphology
207- >>> magnitude = -20.0
208- >>> a, b, M0 = 0.6, -4.63, -20.52
209- >>> sigma1, sigma2 = 0.48, 0.25
210- >>> s = morphology.early_type_lognormal_size(magnitude, a, b, M0, sigma1,
211- ... sigma2)
212-
213-
214177 References
215178 ----------
216179 .. [1] S. Shen, H.J. Mo, S.D.M. White, M.R. Blanton, G. Kauffmann, W. Voges,
@@ -253,14 +216,6 @@ def linear_lognormal_size(magnitude, a_mu, b_mu, sigma, size=None):
253216 shape is (ns,). If magnitude has shape (nm,) and size=None,
254217 shape is (nm,).
255218
256- Examples
257- --------
258- >>> import numpy as np
259- >>> from skypy.galaxies import morphology
260- >>> magnitude = -20.0
261- >>> a_mu, b_mu, sigma =-0.24, -4.63, 0.4
262- >>> s = morphology.linear_lognormal_size(magnitude, a_mu, b_mu, sigma)
263-
264219 References
265220 ----------
266221 .. [1] J. Herbel, T. Kacprzak, A. Amara, A. Refregier, C.Bruderer and
@@ -300,15 +255,6 @@ def ryden04_ellipticity(mu_gamma, sigma_gamma, mu, sigma, size=None):
300255 ----------
301256 .. [1] Ryden B. S., 2004, ApJ, 601, 214
302257
303- Examples
304- --------
305- Sample 10000 random variates from the Ryden (2004) model with parameters
306- :math:`\mu_\gamma = 0.222`, :math:`\sigma_\gamma = 0.056`,
307- :math:`\mu = -1.85`, and :math:`\sigma = 0.89`.
308-
309- >>> from skypy.galaxies.morphology import ryden04_ellipticity
310- >>> ellipticity = ryden04_ellipticity(0.222, 0.056, -1.85, 0.89, size=10000)
311-
312258 '''
313259
314260 # get size if not given
0 commit comments