<div dir="ltr">Hi guys,<div><br></div><div>I'm writing a ParaViewWeb application in python and I'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't get to the Range information. The way I'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'm not sure how to get the range. I looked at the C++ header for vtkPVArrayInformation, and the GetComponentRange is there, but it isn'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 style>Thanks,</div><div style> </div><div><br></div>
-- <br>Zach Mullen<br>R & D Engineer<br>Kitware Inc.<br><a href="tel:919-869-8858" value="+19198698858" target="_blank">919-869-8858</a>
</div></div>