<div dir="ltr"><div>The GetDataInformation() function can be used to meet some of your needs, though maybe not all:</div><div><br></div><div><font face="courier new, monospace">proxy = GetActiveSource()</font></div><div><font face="courier new, monospace">dataInfo = proxy.GetDataInformation()</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"># Get some basic statistics about the data</font></div><div><font face="courier new, monospace">info = { 'bounds': dataInfo.DataInformation.GetBounds(),</font></div>
<div><font face="courier new, monospace"> 'points': dataInfo.DataInformation.GetNumberOfPoints(),</font></div><div><font face="courier new, monospace"> 'cells': dataInfo.DataInformation.GetNumberOfCells(),</font></div>
<div><font face="courier new, monospace"> 'type': dataInfo.DataInformation.GetPrettyDataTypeString(),</font></div><div><font face="courier new, monospace"> 'memory': dataInfo.DataInformation.GetMemorySize() }</font></div>
<div><br></div><div>I'm not sure how to get the number of polygons. Perhaps there's more in that <font face="courier new, monospace">DataInformation</font> reference?</div><div><br></div><div>Cheers,</div><div>Scott</div>
<div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 29, 2014 at 3:27 PM, Bill Sherman <span dir="ltr"><<a href="mailto:shermanw@indiana.edu" target="_blank">shermanw@indiana.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ParaView People,<br>
<br>
I wonder how I might go about accessing the numbers that appear in<br>
the "Statistics Inspector" view panel via the Python scripting<br>
interface. I would like to output some data in the log that I<br>
write when generate a batch animation -- items such as memory<br>
consumption and number of polygons for example.<br>
<br>
It looks like basically all the data that I am interested in is<br>
contained in the "Statistics Inspector", so I'm hoping there is<br>
a quick way to access the data.<br>
<br>
I read through Utkarsh and Ben's Kitware Blog entry on ParaView<br>
memory consumption, but that relies on procfs, and I'd rather<br>
avoid going through that to keep track of things -- besides that<br>
just gives the overall consumption, and then broken down by<br>
shared objects rather than pipeline objects.<br>
<br>
One other thing -- I'm curious as to what the difference is between<br>
the "Statistics Inspector" columns named "Memory (MB)" and<br>
"Geometry (MB)". I'm confident that the first means what is<br>
suggests, but I don't know what Geometry would be measured in<br>
MegaBytes, and how that would differ from basic memory consumption.<br>
<br>
Thanks,<br>
Bill<br>
<br>
--<br>
Bill Sherman<br>
Sr. Technology Advisor<br>
Advanced Visualization Lab<br>
Pervasive Technology Inst<br>
Indiana University<br>
<a href="mailto:shermanw@indiana.edu" target="_blank">shermanw@indiana.edu</a><br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<u></u>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/<u></u>mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>