[cig-commits] r18819 - short/3D/PyLith/branches/v1.6-stable/pylith/utils

brad at geodynamics.org brad at geodynamics.org
Fri Aug 12 12:21:38 PDT 2011


Author: brad
Date: 2011-08-12 12:21:38 -0700 (Fri, 12 Aug 2011)
New Revision: 18819

Modified:
   short/3D/PyLith/branches/v1.6-stable/pylith/utils/VTKDataReader.py
Log:
Updated VTKDataReader for Mayavi 4.0.

Modified: short/3D/PyLith/branches/v1.6-stable/pylith/utils/VTKDataReader.py
===================================================================
--- short/3D/PyLith/branches/v1.6-stable/pylith/utils/VTKDataReader.py	2011-08-11 17:27:03 UTC (rev 18818)
+++ short/3D/PyLith/branches/v1.6-stable/pylith/utils/VTKDataReader.py	2011-08-12 19:21:38 UTC (rev 18819)
@@ -25,13 +25,13 @@
 def has_vtk():
   if not "flag" in dir(has_vtk):
     try:
-      from enthought.tvtk.api import tvtk
+      from tvtk.api import tvtk
       has_vtk.flag = True
     except ImportError:
       print "WARNING: Cannot find Mayavi VTK interface to check output."
       print "         Tests limited to running PyLith without errors."
       print "         Install MayaVi2 " \
-          "(https://svn.enthought.com/enthought/wiki/MayaVi)"
+          "(http://code.enthought.com/projects/mayavi/)"
       print "         in order to enable verification of output."
       has_vtk.flag = False
   return has_vtk.flag
@@ -43,7 +43,7 @@
   """
 
   def __init__(self):
-    from enthought.tvtk.api import tvtk
+    from tvtk.api import tvtk
     reader = tvtk.UnstructuredGridReader()
     reader.read_all_scalars = True
     reader.read_all_vectors = True



More information about the CIG-COMMITS mailing list