Skip to content

Commit

Permalink
update calcCond.py for python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mike5603 authored Apr 2, 2021
1 parent bfe8c79 commit 9925e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calcCond.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,6 @@ def correlate(self,a,b):
al = np.concatenate((a,np.zeros(len(a))),axis=0)
bl = np.concatenate((b,np.zeros(len(b))),axis=0)
c= np.fft.ifft(np.fft.fft(al)*np.conjugate(np.fft.fft(bl))).real
d = c[:len(c)/2]
d = c[:int(len(c)/2)]
d/=(np.arange(len(d))+1)[::-1]
return d

0 comments on commit 9925e83

Please sign in to comment.