[cig-commits] r8403 - short/3D/PyLith/trunk/playpen/euler
willic3 at geodynamics.org
willic3 at geodynamics.org
Thu Dec 6 21:33:10 PST 2007
Author: willic3
Date: 2007-12-06 21:33:10 -0800 (Thu, 06 Dec 2007)
New Revision: 8403
Modified:
short/3D/PyLith/trunk/playpen/euler/transform.py
Log:
Wrong syntax for Python abs.
Modified: short/3D/PyLith/trunk/playpen/euler/transform.py
===================================================================
--- short/3D/PyLith/trunk/playpen/euler/transform.py 2007-12-07 05:31:03 UTC (rev 8402)
+++ short/3D/PyLith/trunk/playpen/euler/transform.py 2007-12-07 05:33:10 UTC (rev 8403)
@@ -321,7 +321,7 @@
mag = math.sqrt(numpy.dot(horPerp,horPerp))
horPerp /= mag
dipCos = math.sin(math.radians(dip))
- if math.abs(dipCos) != 1.0:
+ if math.fabs(dipCos) != 1.0:
r = math.sqrt(1.0/(1.0-dipCos*dipCos))
udVec = numpy.array([horPerp[0]/r, horPerp[1]/r, dipCos], dtype=float)
else:
More information about the cig-commits
mailing list