[Paraview] best way to extract coordinates of selected point using python

Aurélien Marsan aur.marsan at gmail.com
Wed May 18 03:36:21 EDT 2011


The import works fine for me, even with the 64-bits linux release.
Le 18 mai 2011 09:24, Aurélien Marsan <aur.marsan at gmail.com> a écrit :

> No, don't recompile Paraview.
> In the worst case, you simply want to install python 2.7 (same as Paraview)
> on your computer, add the numpy library, and set your PYTHONPATH to this new
> numpy directory.
>
> I check if the numpy import works well with the binary package on a 64-bits
> linux, I will let you know.
> For now, I'm on a windows machine.
>
> Regards,
>
> Aurélien
>
> Le 17 mai 2011 16:14, Fabian Braennstroem <f.braennstroem at gmx.de> a écrit
> :
>
> Thanks, ... by testing it I have some error messages with the programmable
>> filter for the 3.10.1 binary 64bit version on linux:
>>
>> Traceback (most recent call last):
>>  File "<string>", line 10, in <module>
>>  File
>> "/home/gcae504/Desktop/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/__init__.py",
>> line 136, in <module>
>>    import add_newdocs
>>  File
>> "/home/gcae504/Desktop/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/add_newdocs.py",
>> line 9, in <module>
>>    from numpy.lib import add_newdoc
>>  File
>> "/home/gcae504/Desktop/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/lib/__init__.py",
>> line 13, in <module>
>>    from polynomial import *
>>  File
>> "/home/gcae504/Desktop/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/lib/polynomial.py",
>> line 11, in <module>
>>    import numpy.core.numeric as NX
>> AttributeError: 'module' object has no attribute 'core'
>>
>> It seems to me, that the numpy module is not complete!? Or do I need to
>> recompile paraview to get the filter working correctly!?
>>
>> Best Regards!
>> Fabian
>>
>>
>>
>> On 05/17/2011 02:23 PM, Aurélien Marsan wrote:
>>
>>> And for the coordinates :
>>> print inputs[0].Points
>>>
>>> Le 17 mai 2011 14:22, Aurélien Marsan <aur.marsan at gmail.com
>>> <mailto:aur.marsan at gmail.com>> a écrit :
>>>
>>>
>>>    In the programmable filter, if the input is something else than a
>>>    vtkMultiBlockDataSet
>>>    print inputs[0].PointData['ro']
>>>    in order to see the 'ro' value at the point.
>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110518/f1c7f5c2/attachment.htm>


More information about the ParaView mailing list