<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Josh,
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
<div>fooFilter = servermanager.OutputPort(my_reader, 1)</div>
<div>SetActiveSource(fooFilter)</div>
<div>fooFilter.UpdatePipeline() # may not be required</div>
<div><br>
</div>
<div># to see the names of the point data arrays on this output port</div>
<div>dataInfo = fooFilter.GetDataInformation()</div>
<div>pointDataInfo = dataInfo.getPointDataInformation()</div>
<div>numArrays = pointDataInfo.GetNumberOfArrays()</div>
<div>for foo in range(numArrays):</div>
<div> aName = pointDataInfo.GetArrayInformation(foo)</div>
<div> print "name (", foo, "): ", aName</div>
<div><br>
</div>
<div><br>
</div>
<div>(thanks to Utkarsh, who pointed me in the right direction when I was originally trying to do this)</div>
<div><br>
</div>
<div>Hope this helps,</div>
<div>joe</div>
<div><br>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; ">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">===================================================</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; ">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">joseph a. insley <a href="mailto:insley@anl.gov">insley@anl.gov</a></font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; ">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">argonne leadership computing facility (630) 252-5649</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; ">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">argonne national laboratory </font></div>
</div>
<div><br>
</div>
</span><br class="Apple-interchange-newline">
</div>
<br>
<div>
<div>On Sep 25, 2014, at 2:15 PM, Joshua Murphy <<a href="mailto:Joshua.Murphy@lasp.colorado.edu">Joshua.Murphy@lasp.colorado.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hi all,<br>
<br>
I am adding features to my custom reader, and I need some help.<br>
<br>
My reader does the following:<br>
1) Reads the main time-dependent model data<br>
2) Reads 0 or more non model-time dependent files that provide time series information specific points at high temporal resolution.<br>
<br>
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.<br>
<br>
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.<br>
<br>
Can someone give me some advice on how to go about accessing the port1 data from within python?<br>
<br>
Thanks,<br>
Josh<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">
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">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote>
</div>
<br>
</div>
</body>
</html>