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'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 <variable name> (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"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></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>
<<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
> The problem is indeed in the reader. I've attached a patch for the<br>
> issue. It will be committed into git-master soon.<br>
><br>
><br>
> Utkarsh<br>
><br>
> On Mon, Aug 8, 2011 at 10:36 AM, Eelco van Vliet <<a href="mailto:eelcovv@gmail.com">eelcovv@gmail.com</a>> wrote:<br>
>> Hi Utkarsh,<br>
>><br>
>> I am using the LegacyVTKReader. Looking at the reader properties I see that<br>
>> indeed the new filename is in the reader object, but still the first file as<br>
>> defined in the state file is used for plotting.<br>
>><br>
>> Regards<br>
>> Eelco<br>
>><br>
>><br>
>> On Mon, Aug 8, 2011 at 11:46 AM, Eelco van Vliet <<a href="mailto:eelcovv@gmail.com">eelcovv@gmail.com</a>> wrote:<br>
>>><br>
>>> Hello paraviewers,<br>
>>><br>
>>> According to the information I found here<br>
>>> <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>
>>> it should be able to Load a state file and then to change the file name to<br>
>>> apply the same state on multi files (for making an animation for instance)<br>
>>><br>
>>> sm=servermanager<br>
>>> sm.Connect()<br>
>>><br>
>>> sm.LoadState(opt.statefile)<br>
>>> view=GetRenderViews()[0]<br>
>>> cnt=0<br>
>>> for time in timesteps:<br>
>>> ts=[]<br>
>>> ts.append(filelist[cnt])<br>
>>> reader.FileNames = ts<br>
>>> reader.FileNameChanged()<br>
>>> reader.UpdatePipeline()<br>
>>><br>
>>> format="%%s/%%s/%%s/%%s_t%s%%s" % (opt.timeformat)<br>
>>> jpgfile=format %<br>
>>> (path,opt.casedir,opt.outputdir,opt.imbase,float(time),jpgext)<br>
>>> view.ResetCamera()<br>
>>> view.StillRender()<br>
>>> view.WriteImage(jpgfile,"vtkPNGWriter",1)<br>
>>> cnt=cnt+1<br>
>>><br>
>>> However, the scrips keeps showing only the data associate with the first<br>
>>> file in the state file. If I print the properties of the reader with<br>
>>> for i in dir(reader):<br>
>>> print "reader.%s = %s" % (i,getattr(reader,i))<br>
>>> I can see that in the reader object the filename indeed has change, but<br>
>>> the change are not reflected to the newly rendered image. I seems that<br>
>>> UpdatePipe() does not work.<br>
>>> Does anybody sees what goes wrong and how I can fix this ?<br>
>>><br>
>>> Many thanks<br>
>>><br>
>>> Regards<br>
>>><br>
>>> Eelco<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<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>
</div></div></blockquote></div><br></div>