[cig-commits] r8285 -
short/3D/PyLith/trunk/unittests/pytests/feassemble
brad at geodynamics.org
brad at geodynamics.org
Mon Nov 12 17:18:17 PST 2007
Author: brad
Date: 2007-11-12 17:18:16 -0800 (Mon, 12 Nov 2007)
New Revision: 8285
Modified:
short/3D/PyLith/trunk/unittests/pytests/feassemble/TestQuadrature.py
Log:
Added explicit conversion to numpy arrays for args to test_double. Seemed to occassionally be getting errors.
Modified: short/3D/PyLith/trunk/unittests/pytests/feassemble/TestQuadrature.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/feassemble/TestQuadrature.py 2007-11-13 00:56:30 UTC (rev 8284)
+++ short/3D/PyLith/trunk/unittests/pytests/feassemble/TestQuadrature.py 2007-11-13 01:18:16 UTC (rev 8285)
@@ -100,19 +100,19 @@
import pylith.feassemble.testfeassemble as testmodule
vertices = testmodule.vertices(quadrature.cppHandle)
- test_double(self, verticesE, vertices)
+ test_double(self, verticesE, numpy.array(vertices))
basis = testmodule.basis(quadrature.cppHandle)
- test_double(self, basisE, basis)
+ test_double(self, basisE, numpy.array(basis))
basisDeriv = testmodule.basisDeriv(quadrature.cppHandle)
- test_double(self, basisDerivE, basisDeriv)
+ test_double(self, basisDerivE, numpy.array(basisDeriv))
quadWts = testmodule.quadWts(quadrature.cppHandle)
- test_double(self, quadWtsE, quadWts)
+ test_double(self, quadWtsE, numpy.array(quadWts))
quadPts = testmodule.quadPtsRef(quadrature.cppHandle)
- test_double(self, quadPtsE, quadPts)
+ test_double(self, quadPtsE, numpy.array(quadPts))
from pylith.feassemble.geometry.GeometryLine1D import GeometryLine1D
self.failUnless(isinstance(quadrature.cell.geometry, GeometryLine1D))
More information about the cig-commits
mailing list