[Paraview] python scripting - import cvs file

2009-01-14 Thread Pierre-Olivier Dallaire
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

Re: [Paraview] python scripting - import cvs file

2009-01-15 Thread Utkarsh Ayachit
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 wrote: > Good evening, > I'm trying to import a text file in order to superimpose the results with > some O

Re: [Paraview] python scripting - import cvs file

2009-01-15 Thread Pierre-Olivier Dallaire
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 wrote:

Re: [Paraview] python scripting - import cvs file

2009-01-15 Thread Utkarsh Ayachit
These scripts are meant to be used at values for the Script paramater for Programmable Filter or Programmable Source as identified by the title. These will not directly work from the python shell or pvpython. Create a "Programmable Source" from the "Sources" menu in the ParaView GUI and try pastin

Re: [Paraview] python scripting - import cvs file

2009-01-15 Thread Utkarsh Ayachit
Sorry I cannot reproduce your problem. I just loaded your csv file with the CSV reader code from the Wiki and it worked as expected. With CVS ParaView, you can directly load a CSV file and the apply "Table to Points' filter to interpret the CSV data as a set of points. Utkarsh 2009/1/15 Pierre-