Josh,
I had a similar issue a while back, where I had a custom reader with multiple
outputs. In order to get access to output port 1 I ended up doing something
along the lines of:
fooFilter = servermanager.OutputPort(my_reader, 1)
SetActiveSource(fooFilter)
fooFilter.UpdatePipeline() # may not be required
# to see the names of the point data arrays on this output port
dataInfo = fooFilter.GetDataInformation()
pointDataInfo = dataInfo.getPointDataInformation()
numArrays = pointDataInfo.GetNumberOfArrays()
for foo in range(numArrays):
aName = pointDataInfo.GetArrayInformation(foo)
print "name (", foo, "): ", aName
(thanks to Utkarsh, who pointed me in the right direction when I was originally
trying to do this)
Hope this helps,
joe
===================================================
joseph a. insley
[email protected]<mailto:[email protected]>
argonne leadership computing facility (630) 252-5649
argonne national laboratory
On Sep 25, 2014, at 2:15 PM, Joshua Murphy
<[email protected]<mailto:[email protected]>> wrote:
Hi all,
I am adding features to my custom reader, and I need some help.
My reader does the following:
1) Reads the main time-dependent model data
2) Reads 0 or more non model-time dependent files that provide time series
information specific points at high temporal resolution.
Currently, I am reading the main model data as a structured grid on Port 0 and
the time series files into a multi-block table on port 1.
This works great, as far as it goes, but I cannot figure out how to access any
of the port 1 information from within Python. Everytime I try to fetch data
for the source, I get a vtkStructuredGrid structure, with no sign of the
multi-block tables.
Can someone give me some advice on how to go about accessing the port1 data
from within python?
Thanks,
Josh
_______________________________________________
Powered by www.kitware.com<http://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
_______________________________________________
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