[Commits] [svn:einsteintoolkit] pyGWAnalysis/trunk/DataAnalysis/ (Rev. 5)
reisswig at tapir.caltech.edu
reisswig at tapir.caltech.edu
Tue Jun 28 09:44:55 CDT 2011
User: reisswig
Date: 2011/06/28 09:44 AM
Modified:
/trunk/DataAnalysis/
DataAnalysis.py
Log:
Fix same bug in a related routine.
File Changes:
Directory: /trunk/DataAnalysis/
===============================
File [modified]: DataAnalysis.py
Delta lines: +2 -2
===================================================================
--- trunk/DataAnalysis/DataAnalysis.py 2011-06-28 14:31:10 UTC (rev 4)
+++ trunk/DataAnalysis/DataAnalysis.py 2011-06-28 14:44:54 UTC (rev 5)
@@ -239,9 +239,9 @@
for ii in range(0, fr.Length()):
if (fr.x[ii] != 0):
- if fr.x[ii] < 0: fr.f[ii] = 0
+ #if fr.x[ii] < 0: fr.f[ii] = 0
div = 2*pi*fr.x[ii]
- if fr.x[ii] < f0: div = 2*pi*f0
+ if abs(fr.x[ii]) < abs(f0): div = 2*pi*abs(f0)*sign(fr.x[ii])
fr.f[ii] = complex(0.,1.)**k * fr.f[ii]/(div**k)
else:
More information about the Commits
mailing list