From: Adrien Bruneton Date: Thu, 13 Feb 2014 08:41:14 +0000 (+0100) Subject: Bug fix: pvsimple.OpenDataFile was not working X-Git-Tag: V7_3_1rc1~1^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ef4d1f741e53b20ffc2eb05afa1fa6a4be522b9b;p=modules%2Fparavis.git Bug fix: pvsimple.OpenDataFile was not working --- diff --git a/src/PV_SWIG/VTKWrapping/pvsimple.py b/src/PV_SWIG/VTKWrapping/pvsimple.py index 6a77e5f2..350b573a 100644 --- a/src/PV_SWIG/VTKWrapping/pvsimple.py +++ b/src/PV_SWIG/VTKWrapping/pvsimple.py @@ -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)