<div dir="ltr">You need to update your ParaView to ParaView/master. The version that you have has some python wrapping issue.<div><br></div><div style>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Apr 11, 2013 at 5:22 PM, Zach Mullen <span dir="ltr">&lt;<a href="mailto:zach.mullen@kitware.com" target="_blank">zach.mullen@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi guys,<div><br></div><div>I&#39;m writing a ParaViewWeb application in python and I&#39;m running into trouble.  I load the data source, which is a volume image (.mha) as follows:</div><div><br></div><div>


<div>srcObj = simple.OpenDataFile(fullpath)</div>
<div>simple.SetActiveSource(srcObj)</div><div>rep = simple.Show()</div><div><br></div><div>I have managed to get the bounds and color array name information, but for some reason I can&#39;t get to the Range information.  The way I&#39;m trying is:</div>



<div><br></div><div>imageData = srcObj.GetPointDataInformation().GetArray(0)<br></div><div>scalarRange = imageData.GetRange()</div><div><br></div><div><br></div><div>I get an error saying GetComponentRange() function does not exist, and indeed when I get the instance of the underlying<font face="arial, sans-serif"> </font><span style="font-family:arial,sans-serif;font-size:13px">vtkPVArrayInformation, that function is not there in python, so I&#39;m not sure how to get the range.  I looked at the C++ header for vtkPVArrayInformation, and the GetComponentRange is there, but it isn&#39;t available on that python object exposed to me, even though SetComponentRange is present.</span></div>


<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div>
<div>This is on current master branch of ParaView built with python wrapping.  When I run the same code in v3.98 in the GUI with python shell, it works fine and I get back the range for the image.  If there is some better way to get the range, please let me know.  In older versions of the script I just used simple.GetDataInformation(), but it looks like that function has gone away.</div>


<div><br></div><div>Thanks,</div><span class="HOEnZb"><font color="#888888"><div>  </div><div><br></div>
-- <br>Zach Mullen<br>R &amp; D Engineer<br>Kitware Inc.<br><a href="tel:919-869-8858" value="+19198698858" target="_blank">919-869-8858</a>
</font></span></div></div>
<br>_______________________________________________<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/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/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>