Ah, I was wrong in my earlier response. The problem is that the single
quotation marks are copied from the ParaView Guide as apostrophes (or
"smart" single quotes). Change these to single quotes ( ' ) in your script
and it will run fine.

HTH,
Cory

On Thu, Feb 22, 2018 at 5:36 PM, Mohammed Babiker <[email protected]>
wrote:

> Dear Cory,
>
> Thanks for your quick respond, I did what you said but a gain I got error
> massage  as shown below
>
> ERROR: In 
> C:\bbd\7cc78367\source-paraview\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx,
> line 809
>
> vtkPVDataRepresentationPipeline (0000024B59BAEEC0): Input for connection
> index 0 on input port index 0 for algorithm 
> vtkGeometryRepresentationWithFaces(0000024B5AC08230)
> is of type vtkTable, but a vtkDataSet is required.
>
>
>
> ERROR: In 
> C:\bbd\7cc78367\source-paraview\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx,
> line 809
>
> vtkPVDataRepresentationPipeline (0000024B59BB4AA0): Input for connection
> index 0 on input port index 0 for algorithm 
> vtkGeometryRepresentation(0000024B534FA090)
> is of type vtkTable, but a vtkDataSet is required.
>
>
>
> ERROR: In 
> C:\bbd\7cc78367\source-paraview\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx,
> line 809
>
> vtkPVDataRepresentationPipeline (0000024B51452420): Input for connection
> index 0 on input port index 0 for algorithm 
> vtkPVGridAxes3DRepresentation(0000024B593C64B0)
> is of type vtkTable, but a vtkCompositeDataSet is required.
>
> Regards.
>
> *From: *Cory Quammen <[email protected]>
> *Sent: *Thursday, February 22, 2018 11:30 PM
> *To: *Mohammed Babiker <[email protected]>
> *Cc: *[email protected]
> *Subject: *Re: [Paraview] Teaser (Programmable filter) Not working
>
>
>
> Mohammed,
>
>
>
> There is a bug in this filter that requires you to set the output data
> type to the desired type to vtkTable before the first time you click Apply.
> Changing it after clicking Apply currently doesn't work.
>
>
>
> See if that works around the problem.
>
>
>
> Thanks,
>
> Cory
>
>
>
> On Thu, Feb 22, 2018 at 5:17 PM, Mohammed Babiker <[email protected]>
> wrote:
>
> Good evening Paraview-Help
>
> I tried to run the script in Paraview guide chapter fourteen (Teaser) page
> 175 I used first source sphere then the filter elevation and then
> programmable filter and then I paste the script bellow in script part:
>
> *from* *vtk.* *numpy_interface* *import* dataset_adapter *as* dsa
>
> *from* *vtk.* *numpy_interface* *import* algorithms *as* algs
>
> data = inputs [0]
>
> *print* data.PointData.keys ()
>
> *print* data.PointData[’Elevation ’]
>
> and the rest left default as it was .after hitting run it suppose to get a
> table as was said in the guide but I got the below error :
>
> File "<string>", line 6
>
> print data.PointData[’Elevation ’]
>
> ^
>
> SyntaxError: invalid syntax
>
> Traceback (most recent call last):
>
> File "<string>", line 22, in <module>
>
> NameError: name 'RequestData' is not defined
>
> Then I tried to change the output type to different types
> (vtktable,vtkpolydata,…etc) and I got different errors.
>
> Below attached images contain info. About the version of ParaView and the
> pipeline scheme (format png).
>
> Any help or advice  will be greatly appreciated .
>
>
>
> Kind Regards.
>
>
>
> Mohammed B. A. Hassan
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
>
>
>
> --
>
> Cory Quammen
> Staff R&D Engineer
> Kitware, Inc.
>
>
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview

Reply via email to