[Paraview] Statistics Inspector data via Python
Scott Wittenburg
scott.wittenburg at kitware.com
Tue Jul 29 17:48:23 EDT 2014
The GetDataInformation() function can be used to meet some of your needs,
though maybe not all:
proxy = GetActiveSource()
dataInfo = proxy.GetDataInformation()
# Get some basic statistics about the data
info = { 'bounds': dataInfo.DataInformation.GetBounds(),
'points': dataInfo.DataInformation.GetNumberOfPoints(),
'cells': dataInfo.DataInformation.GetNumberOfCells(),
'type': dataInfo.DataInformation.GetPrettyDataTypeString(),
'memory': dataInfo.DataInformation.GetMemorySize() }
I'm not sure how to get the number of polygons. Perhaps there's more in
that DataInformation reference?
Cheers,
Scott
On Tue, Jul 29, 2014 at 3:27 PM, Bill Sherman <shermanw at indiana.edu> wrote:
> ParaView People,
>
> I wonder how I might go about accessing the numbers that appear in
> the "Statistics Inspector" view panel via the Python scripting
> interface. I would like to output some data in the log that I
> write when generate a batch animation -- items such as memory
> consumption and number of polygons for example.
>
> It looks like basically all the data that I am interested in is
> contained in the "Statistics Inspector", so I'm hoping there is
> a quick way to access the data.
>
> I read through Utkarsh and Ben's Kitware Blog entry on ParaView
> memory consumption, but that relies on procfs, and I'd rather
> avoid going through that to keep track of things -- besides that
> just gives the overall consumption, and then broken down by
> shared objects rather than pipeline objects.
>
> One other thing -- I'm curious as to what the difference is between
> the "Statistics Inspector" columns named "Memory (MB)" and
> "Geometry (MB)". I'm confident that the first means what is
> suggests, but I don't know what Geometry would be measured in
> MegaBytes, and how that would differ from basic memory consumption.
>
> Thanks,
> Bill
>
> --
> Bill Sherman
> Sr. Technology Advisor
> Advanced Visualization Lab
> Pervasive Technology Inst
> Indiana University
> shermanw at indiana.edu
> _______________________________________________
> 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/20140729/7764e79a/attachment.html>
More information about the ParaView
mailing list