From ef4d1f741e53b20ffc2eb05afa1fa6a4be522b9b Mon Sep 17 00:00:00 2001 From: Adrien Bruneton Date: Thu, 13 Feb 2014 09:41:14 +0100 Subject: [PATCH] Bug fix: pvsimple.OpenDataFile was not working --- src/PV_SWIG/VTKWrapping/pvsimple.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.2