specify the time in the call to UpdatePipeline()<br>eg.<br><br>
reader_base.UpdatePipeline(1.2)<br><br>Utkarsh<br><br><br><br><div class="gmail_quote">On Tue, Jun 9, 2009 at 3:20 AM, Felipe Bordeu Weldt <span dir="ltr">&lt;<a href="mailto:bordeu@lmt.ens-cachan.fr">bordeu@lmt.ens-cachan.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hello,<br>
<br>
How do I change the time value in the sources.PVDReader(). I have a pdv file with 6 time-steps, but I can access only the first one time step.<br>
<br>
----.py-----------<br>
<br>
connection = Connect()<br>
reader_base = sources.PVDReader()<br>
reader_base.Initialize(connection)<br>
<br>
reader_base.FileName = &quot;I/sol/para_pli1.pvd&quot;<br>
reader_base.UpdatePipeline()<br>
<br>
info_base= reader_base.GetDataInformation()<br>
<br>
print info_base.GetTime()<br>
<br>
dep = info_base.GetPointDataInformation().GetArrayInformation(0)<br>
print dep.GetComponentRange(0)<br>
<br>
-----.pvd ---------------------<br>
&lt;?xml version=&quot;1.0&quot;?&gt;<br>
&lt;VTKFile type=&quot;Collection&quot; version=&quot;0.1&quot; byte_order=&quot;LittleEndian&quot; compressor=&quot;vtkZLibDataCompressor&quot;&gt;<br>
&lt;Collection&gt;<br>
&lt;DataSet timestep=&quot;0&quot; part=&quot;1&quot; file=&quot;para_pli101M0000.vtu&quot; /&gt;<br>
&lt;DataSet timestep=&quot;1&quot; part=&quot;1&quot; file=&quot;para_pli101M0001.vtu&quot; /&gt;<br>
&lt;DataSet timestep=&quot;1.2&quot; part=&quot;1&quot; file=&quot;para_pli101M0002.vtu&quot; /&gt;<br>
&lt;DataSet timestep=&quot;1.4&quot; part=&quot;1&quot; file=&quot;para_pli101M0003.vtu&quot; /&gt;<br>
&lt;DataSet timestep=&quot;1.6&quot; part=&quot;1&quot; file=&quot;para_pli101M0004.vtu&quot; /&gt;<br>
&lt;DataSet timestep=&quot;1.8&quot; part=&quot;1&quot; file=&quot;para_pli101M0005.vtu&quot; /&gt;<br>
&lt;DataSet timestep=&quot;2&quot; part=&quot;1&quot; file=&quot;para_pli101M0006.vtu&quot; /&gt;<br>
&lt;/Collection&gt;<br>
&lt;/VTKFile&gt;<br>
------------------------------------------------------------------------<br>
Felipe Bordeu Weldt<br>
Doctorant - 3° année   (3° year PhD student)<br>
------------------------------------------------------------------------<br>
LMT-Cachan<br>
(ENS Cachan/CNRS/UPMC/PRES UniverSud Paris)<br>
61, av. du Président Wilson<br>
F-94230 Cachan<br>
France<br>
------------------------------------------------------------------------<br>
<br>
<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>
</blockquote></div><br>