Thanks - it works when I set the grid name.<div><br></div><div>Regards,</div><div>Paul</div><div><br><div class="gmail_quote">2009/9/15 Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Paul,<br>
<br>
The XdmfReader version is to be deprecated soon. It is being replaced<br>
in the CVS with XdmfReader2 (which will eventually become XdmfReader).<br>
The new reader is still under development so there may still be some<br>
kinks in it that need to ironed out.<br>
<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Tue, Sep 15, 2009 at 12:36 PM, pat marion <<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>> wrote:<br>
> Ok, I tried again with the original XDMFReader. It seems that if I<br>
> set the GridName property then it works-<br>
><br>
> r = XDMFReader(FileName='/source/paraview/ParaViewData/Data/Test1.xmf')<br>
> r.GridName = "Unnamed"<br>
><br>
> You might also want to set the PointArrays property... I'm not very<br>
> familiar with the xdmf reader.<br>
><br>
> Pat<br>
><br>
><br>
> On Tue, Sep 15, 2009 at 12:27 PM, Paul Edwards <<a href="mailto:paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</a>> wrote:<br>
>> I don't have that one available in pvpython. Do I need to enable it<br>
>> somehow?<br>
>><br>
>> Thanks,<br>
>> Paul<br>
>><br>
>> 2009/9/15 pat marion <<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>><br>
>>><br>
>>> Try changing that to 'XDMFReader2'.<br>
>>><br>
>>> Pat<br>
>>><br>
>>> On Tue, Sep 15, 2009 at 10:17 AM, Paul Edwards <<a href="mailto:paul.m.edwards@gmail.com">paul.m.edwards@gmail.com</a>><br>
>>> wrote:<br>
>>> > Hi,<br>
>>> ><br>
>>> > I am running the same commands in the Python Shell as with pvpython but<br>
>>> > getting different results:<br>
>>> ><br>
>>> > Commands<br>
>>> > from paraview.simple import *<br>
>>> > input = XDMFReader( FileName=/path/to/xdmf/file )<br>
>>> > input.UpdatePipeline()<br>
>>> > print input.PointData.GetNumberOfArrays()<br>
>>> ><br>
>>> > When executed in the Python Shell I get the correct number of arrays but<br>
>>> > the<br>
>>> > with pvpython it will return 0.<br>
>>> ><br>
>>> > Am I doing anything wrong?<br>
>>> ><br>
>>> > Thanks,<br>
>>> > Paul<br>
>>> ><br>
>>> ><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<br>
>>> > <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:<br>
>>> > <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>
>>> ><br>
>><br>
>><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>
</div></div></blockquote></div><br></div>