[Paraview] python scripting - import cvs file

Pierre-Olivier Dallaire pierre-olivier.dallaire at videotron.ca
Wed Jan 14 19:17:05 EST 2009


Good evening,

I'm trying to import a text file in order to superimpose the results  
with some OpenFOAM results.
I'm using a python script to read the text file; however, the basic  
script provided at
http://cmake.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters
fails at pdo = self.GetOutput() :

Traceback (most recent call last):
   File "paraview_cvs.py", line 21, in <module>
     pdo = self.GetOutput()
NameError: name 'self' is not defined

Not sure what is wrong - any idea ?

Best regards,

PO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090114/4b284661/attachment-0001.htm>


More information about the ParaView mailing list