[Paraview] Teaser (Programmable filter) Not working
Mohammed Babiker
en.mhdbabiker at gmail.com
Thu Feb 22 17:17:01 EST 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180222/c62828dc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: version.png
Type: image/png
Size: 129457 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180222/c62828dc/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pipline.png
Type: image/png
Size: 6290 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180222/c62828dc/attachment-0003.png>
More information about the ParaView
mailing list