Skip to content

Commit e9b2698

Browse files
committed
DOC: Create links when np.ndarray is the return type
1 parent 577c2aa commit e9b2698

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

sfs/tapering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def tukey(active, alpha):
6767
6868
Returns
6969
-------
70-
(len(active),) numpy.ndarray
70+
(len(active),) `numpy.ndarray`
7171
Tapering weights.
7272
7373
Examples
@@ -123,7 +123,7 @@ def kaiser(active, beta):
123123
124124
Returns
125125
-------
126-
(len(active),) numpy.ndarray
126+
(len(active),) `numpy.ndarray`
127127
Tapering weights.
128128
129129
Examples

sfs/util.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def rotation_matrix(n1, n2):
2121
2222
Returns
2323
-------
24-
(3, 3) numpy.ndarray
24+
(3, 3) `numpy.ndarray`
2525
Rotation matrix.
2626
2727
"""
@@ -78,18 +78,17 @@ def sph2cart(alpha, beta, r):
7878
7979
Returns
8080
-------
81-
x : float or array_like
81+
x : float or `numpy.ndarray`
8282
x-component of Cartesian coordinates
83-
y : float or array_like
83+
y : float or `numpy.ndarray`
8484
y-component of Cartesian coordinates
85-
z : float or array_like
85+
z : float or `numpy.ndarray`
8686
z-component of Cartesian coordinates
8787
8888
"""
8989
x = r * np.cos(alpha) * np.sin(beta)
9090
y = r * np.sin(alpha) * np.sin(beta)
9191
z = r * np.cos(beta)
92-
9392
return x, y, z
9493

9594

@@ -115,11 +114,11 @@ def cart2sph(x, y, z):
115114
116115
Returns
117116
-------
118-
alpha : float or array_like
117+
alpha : float or `numpy.ndarray`
119118
Azimuth angle in radiants
120-
beta : float or array_like
119+
beta : float or `numpy.ndarray`
121120
Colatitude angle in radiants (with 0 denoting North pole)
122-
r : float or array_like
121+
r : float or `numpy.ndarray`
123122
Radius
124123
125124
"""
@@ -252,7 +251,7 @@ def strict_arange(start, stop, step=1, endpoint=False, dtype=None, **kwargs):
252251
253252
Returns
254253
-------
255-
numpy.ndarray
254+
`numpy.ndarray`
256255
Array of evenly spaced values. See :func:`numpy.arange`.
257256
258257
"""
@@ -508,9 +507,9 @@ def image_sources_for_box(x, L, N, prune=True):
508507
509508
Returns
510509
-------
511-
xs : (M, D) array_like
510+
xs : (M, D) `numpy.ndarray`
512511
original & image source locations.
513-
wall_count : (M, 2D) array_like
512+
wall_count : (M, 2D) `numpy.ndarray`
514513
number of reflections at individual walls for each source.
515514
516515
"""

0 commit comments

Comments
 (0)