[Paraview] python scripting - import cvs file

Pierre-Olivier Dallaire pierre-olivier.dallaire at videotron.ca
Thu Jan 15 09:44:08 EST 2009


python shell, I'm using "pvpython script.py"


On 15-Jan-09, at 9:20 AM, Utkarsh Ayachit wrote:

> Where are you typing the python script: the python shell or the
> "Script" parameter for the Programmable Filter/Programmable Source?
>
>
> On Wed, Jan 14, 2009 at 7:17 PM, Pierre-Olivier Dallaire
> <pierre-olivier.dallaire at videotron.ca> wrote:
>> 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
>>
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>



More information about the ParaView mailing list