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-Olivier Dallaire <[email protected]>: > Thanks ! > > I've tried but Paraview crashes for an unknown reason. The examples with the > programmable filter > work but this one for the cvs reader does not. I'm sending my test file. > > Any idea ? > > Thanks again for your help > > PO > > > On 15-Jan-09, at 9:50 AM, Utkarsh Ayachit wrote: > >> 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 pasting the script in the "Script" entry box on the >> Paramaters panel. >> >> Utkarsh >> >> On Thu, Jan 15, 2009 at 9:44 AM, Pierre-Olivier Dallaire >> <[email protected]> wrote: >>> >>> 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 >>>> <[email protected]> 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 >>>>> [email protected] >>>>> http://www.paraview.org/mailman/listinfo/paraview >>>>> >>>>> >>> >>> > > > _______________________________________________ ParaView mailing list [email protected] http://www.paraview.org/mailman/listinfo/paraview
