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"><<a href="mailto:bordeu@lmt.ens-cachan.fr">bordeu@lmt.ens-cachan.fr</a>></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 = "I/sol/para_pli1.pvd"<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>
<?xml version="1.0"?><br>
<VTKFile type="Collection" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor"><br>
<Collection><br>
<DataSet timestep="0" part="1" file="para_pli101M0000.vtu" /><br>
<DataSet timestep="1" part="1" file="para_pli101M0001.vtu" /><br>
<DataSet timestep="1.2" part="1" file="para_pli101M0002.vtu" /><br>
<DataSet timestep="1.4" part="1" file="para_pli101M0003.vtu" /><br>
<DataSet timestep="1.6" part="1" file="para_pli101M0004.vtu" /><br>
<DataSet timestep="1.8" part="1" file="para_pli101M0005.vtu" /><br>
<DataSet timestep="2" part="1" file="para_pli101M0006.vtu" /><br>
</Collection><br>
</VTKFile><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>