Skip to content

Commit 303bb7c

Browse files
authored
Merge pull request #23 from mborgerding/master
filters: corrected docstrings to match output tuple order
2 parents 140df4e + f9ddf3d commit 303bb7c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

commpy/filters.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def rcosfilter(N, alpha, Ts, Fs):
4242
Returns
4343
-------
4444
45-
h_rc : 1-D ndarray (float)
46-
Impulse response of the raised cosine filter.
47-
4845
time_idx : 1-D ndarray (float)
4946
Array containing the time indices, in seconds, for the impulse response.
47+
48+
h_rc : 1-D ndarray (float)
49+
Impulse response of the raised cosine filter.
5050
"""
5151

5252
T_delta = 1/float(Fs)
@@ -89,12 +89,12 @@ def rrcosfilter(N, alpha, Ts, Fs):
8989
Returns
9090
---------
9191
92-
h_rrc : 1-D ndarray of floats
93-
Impulse response of the root raised cosine filter.
94-
9592
time_idx : 1-D ndarray of floats
9693
Array containing the time indices, in seconds, for
9794
the impulse response.
95+
96+
h_rrc : 1-D ndarray of floats
97+
Impulse response of the root raised cosine filter.
9898
"""
9999

100100
T_delta = 1/float(Fs)
@@ -141,11 +141,11 @@ def gaussianfilter(N, alpha, Ts, Fs):
141141
Returns
142142
-------
143143
144-
h_gaussian : 1-D ndarray of floats
145-
Impulse response of the gaussian filter.
146-
147144
time_index : 1-D ndarray of floats
148145
Array containing the time indices for the impulse response.
146+
147+
h_gaussian : 1-D ndarray of floats
148+
Impulse response of the gaussian filter.
149149
"""
150150

151151
T_delta = 1/float(Fs)
@@ -173,11 +173,11 @@ def rectfilter(N, Ts, Fs):
173173
Returns
174174
-------
175175
176-
h_rect : 1-D ndarray of floats
177-
Impulse response of the rectangular filter.
178-
179176
time_index : 1-D ndarray of floats
180177
Array containing the time indices for the impulse response.
178+
179+
h_rect : 1-D ndarray of floats
180+
Impulse response of the rectangular filter.
181181
"""
182182

183183
h_rect = np.ones(N)

0 commit comments

Comments
 (0)