Skip to content

Commit 6f9a9c9

Browse files
committed
Fix #62
1 parent fb09893 commit 6f9a9c9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/spectrum/correlog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def CORRELOGRAMPSD(X, Y=None, lag=-1, window='hamming',
109109
# Window should be centered around zero. Moreover, we want only the
110110
# positive values. So, we need to use 2*lag + 1 window and keep values on
111111
# the right side.
112-
w = Window(2.*lag+1, window, **window_params)
112+
w = Window(2*lag+1, window, **window_params)
113113
w = w.data[lag+1:]
114114

115115
# compute the cross correlation

src/spectrum/window.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def _getMeanSquare(self):
167167
return np.sum(self.data**2)/self.N
168168
mean_square = property(fget=_getMeanSquare, doc="returns :math:`\frac{w^2}{N}`")
169169

170-
171170
def _getName(self):
172171
return self.__name
173172
name = property(fget=_getName, doc="Getter for the window name")
@@ -190,7 +189,6 @@ def _getResponse(self):
190189
response = property(fget=_getResponse, doc="Getter for the frequency \
191190
response. See :meth:`compute_response`")
192191

193-
194192
def compute_response(self, **kargs):
195193
"""Compute the window data frequency response
196194

0 commit comments

Comments
 (0)