Hi Utkarsh, <div><br></div><div>This is excellent! I have been putting quite some time in a work around, but is was making things complicated, so I hope this patch helps.</div><div><br></div><div>If I find a bug, does it mean that I can put it to this <a href="http://paraview.org/Bug">paraview.org/Bug</a> side? Because I have two more bugs (at least, that&#39;s what I suspect)</div>
<div>:</div><div>1) pythonCalculator does not work in parallel (with mpirun) (I gave a larger post on this proplem two weeks ago)</div><div><br></div><div>2) When running with pvbatch --offscreen-rendering option, it seems that when looping over a large set of time steps, the memory is not released when reading time step using the same LegacyVTKReader, even when the Delete is called on the data object. And even with a del &lt;variable name&gt; (I found on one of the paraview sites that this actually should free the memory.) Especially for a large set of time steps this becomes  a problem because my computer runs out of memory. If I run the same script without --offscreen-rendering option the problem does not occur, but in that way you can not submit the script to a cluster. </div>
<div><br></div><div>Would it help if I send the bugs with an example to the Mantis side?</div><div><br></div><div>Again many thanks for your patch!</div><div><br></div><div>Regards</div><div><br></div><div>Eelco </div><div>
<br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br><div class="gmail_quote">On Tue, Aug 9, 2011 at 7:43 PM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">FYI: <a href="http://paraview.org/Bug/view.php?id=12489" target="_blank">http://paraview.org/Bug/view.php?id=12489</a><br>

<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Tue, Aug 9, 2011 at 1:35 PM, Utkarsh Ayachit<br>
&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt; wrote:<br>
&gt; The problem is indeed in the reader. I&#39;ve attached  a patch for the<br>
&gt; issue. It will be committed into git-master soon.<br>
&gt;<br>
&gt;<br>
&gt; Utkarsh<br>
&gt;<br>
&gt; On Mon, Aug 8, 2011 at 10:36 AM, Eelco van Vliet &lt;<a href="mailto:eelcovv@gmail.com">eelcovv@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi Utkarsh,<br>
&gt;&gt;<br>
&gt;&gt; I am using the LegacyVTKReader. Looking at the reader properties I see that<br>
&gt;&gt; indeed the new filename is in the reader object, but still the first file as<br>
&gt;&gt; defined in the state file is used for plotting.<br>
&gt;&gt;<br>
&gt;&gt; Regards<br>
&gt;&gt; Eelco<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Aug 8, 2011 at 11:46 AM, Eelco van Vliet &lt;<a href="mailto:eelcovv@gmail.com">eelcovv@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hello paraviewers,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; According to the information I found here<br>
&gt;&gt;&gt; <a href="http://www.itk.org/Wiki/ParaView/Users_Guide/Batch_Processing" target="_blank">http://www.itk.org/Wiki/ParaView/Users_Guide/Batch_Processing</a> (bottom page)<br>
&gt;&gt;&gt; it should be able to Load a state file and then to change the file name to<br>
&gt;&gt;&gt; apply the same state on  multi files (for making an animation for instance)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; sm=servermanager<br>
&gt;&gt;&gt; sm.Connect()<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; sm.LoadState(opt.statefile)<br>
&gt;&gt;&gt; view=GetRenderViews()[0]<br>
&gt;&gt;&gt; cnt=0<br>
&gt;&gt;&gt; for time in timesteps:<br>
&gt;&gt;&gt;    ts=[]<br>
&gt;&gt;&gt;    ts.append(filelist[cnt])<br>
&gt;&gt;&gt;    reader.FileNames = ts<br>
&gt;&gt;&gt;    reader.FileNameChanged()<br>
&gt;&gt;&gt;    reader.UpdatePipeline()<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;   format=&quot;%%s/%%s/%%s/%%s_t%s%%s&quot; % (opt.timeformat)<br>
&gt;&gt;&gt;   jpgfile=format %<br>
&gt;&gt;&gt; (path,opt.casedir,opt.outputdir,opt.imbase,float(time),jpgext)<br>
&gt;&gt;&gt;   view.ResetCamera()<br>
&gt;&gt;&gt;   view.StillRender()<br>
&gt;&gt;&gt;   view.WriteImage(jpgfile,&quot;vtkPNGWriter&quot;,1)<br>
&gt;&gt;&gt;   cnt=cnt+1<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; However, the scrips keeps showing only the data associate with the first<br>
&gt;&gt;&gt; file in the state file. If I print the properties of the reader with<br>
&gt;&gt;&gt;  for i in dir(reader):<br>
&gt;&gt;&gt;       print &quot;reader.%s = %s&quot; % (i,getattr(reader,i))<br>
&gt;&gt;&gt; I can see that in the reader object the filename indeed has change, but<br>
&gt;&gt;&gt; the change are not reflected to the newly rendered image. I seems that<br>
&gt;&gt;&gt; UpdatePipe() does not work.<br>
&gt;&gt;&gt; Does anybody sees what goes wrong and how I can fix this ?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Many thanks<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Eelco<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>