]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Bug fix: pvsimple.OpenDataFile was not working
authorAdrien Bruneton <adrien.bruneton@cea.fr>
Thu, 13 Feb 2014 08:41:14 +0000 (09:41 +0100)
committerAdrien Bruneton <adrien.bruneton@cea.fr>
Thu, 13 Feb 2014 08:41:14 +0000 (09:41 +0100)
src/PV_SWIG/VTKWrapping/pvsimple.py

index 6a77e5f288ddb23f60717344dc842566cdcadcda..350b573a168c9c7df86445b9fabd5d3390329326 100644 (file)
@@ -186,7 +186,9 @@ def OpenDataFile(filename, **extraArgs):
         raise RuntimeError, msg
     prototype = servermanager.ProxyManager().GetPrototypeProxy(
       reader_factor.GetReaderGroup(), reader_factor.GetReaderName())
-    xml_name = paraview.make_name_valid(prototype.GetXMLLabel())
+    # [ABN]: bug fix for Christian VW (temporary - pvsimple should disappear soon) 
+    from paraview import make_name_valid  # make_name_valid is not in paravisSM
+    xml_name = make_name_valid(prototype.GetXMLLabel())
     reader_func = _create_func(xml_name, servermanager.sources)
     if prototype.GetProperty("FileNames"):
       reader = reader_func(FileNames=filename, **extraArgs)