[Paraview] Extracting results from python

Berk Geveci berk.geveci at kitware.com
Wed Jul 9 16:02:24 EDT 2014


You need something like this:

print IntegrateVariables0.PointData['xxx'].GetRange()

where xxx is the name of the array you are integrating.

Best,
-berk


On Wed, Jul 9, 2014 at 12:01 AM, Chukwudi Chukwudozie <
cchukw1 at tigers.lsu.edu> wrote:

> Hi,
>
> I'm pretty new in paraview python scripting and I'm trying my hand on an
> example to IntegrateVariables along a slice (plane). However, I don't know
> how to extract the results of the Integrate pipeline as when I ask to
> print, all I get is a memory address. Below is a snapshot of my s=python
> script. Basically, after calling, IntegrateVariables0 = IntegrateVariables(
> Calculator0 ), I want to be able to use the result of the integration for
> other operations. How do I access it, or the syntax to use.
>
> Slice0 = Slice()
>
> Slice0.SliceType = "Plane"
>
> Slice0 = GetActiveSource()
>
> Slice0.SliceType.Origin = [0.5, 0.005, 0.5]
>
> Slice0.SliceType.Normal = [1.0, 0.0, 0.0]
>
> Calculator0 = Calculator( Slice0 )
>
> Calculator0.Function = 'Volumetric Crack Opening'
>
> IntegrateVariables0 = IntegrateVariables( Calculator0 )
>
> print IntegrateVariables0
>
>
>
>
> Chuks
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140709/c6d8b30c/attachment.html>


More information about the ParaView mailing list