[Paraview] XDMF reader and pvpython

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Sep 15 13:47:30 EDT 2009


Paul,

The XdmfReader version is to be deprecated soon. It is being replaced
in the CVS with XdmfReader2 (which will eventually become XdmfReader).
The new reader is still under development so there may still be some
kinks in it that need to ironed out.

Utkarsh

On Tue, Sep 15, 2009 at 12:36 PM, pat marion <pat.marion at kitware.com> wrote:
> Ok, I tried again with the original XDMFReader.  It seems that if I
> set the GridName property then it works-
>
> r = XDMFReader(FileName='/source/paraview/ParaViewData/Data/Test1.xmf')
> r.GridName = "Unnamed"
>
> You might also want to set the PointArrays property... I'm not very
> familiar with the xdmf reader.
>
> Pat
>
>
> On Tue, Sep 15, 2009 at 12:27 PM, Paul Edwards <paul.m.edwards at gmail.com> wrote:
>> I don't have that one available in pvpython.  Do I need to enable it
>> somehow?
>>
>> Thanks,
>> Paul
>>
>> 2009/9/15 pat marion <pat.marion at kitware.com>
>>>
>>> Try changing that to 'XDMFReader2'.
>>>
>>> Pat
>>>
>>> On Tue, Sep 15, 2009 at 10:17 AM, Paul Edwards <paul.m.edwards at gmail.com>
>>> wrote:
>>> > Hi,
>>> >
>>> > I am running the same commands in the Python Shell as with pvpython but
>>> > getting different results:
>>> >
>>> > Commands
>>> > from paraview.simple import *
>>> > input = XDMFReader( FileName=/path/to/xdmf/file )
>>> > input.UpdatePipeline()
>>> > print input.PointData.GetNumberOfArrays()
>>> >
>>> > When executed in the Python Shell I get the correct number of arrays but
>>> > the
>>> > with pvpython it will return 0.
>>> >
>>> > Am I doing anything wrong?
>>> >
>>> > Thanks,
>>> > Paul
>>> >
>>> >
>>> > _______________________________________________
>>> > 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://www.paraview.org/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://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list