<p>Interesting. Glad to hear you got a work around.</p>
<p>Cheers</p>
<div class="gmail_quote">On Aug 14, 2015 4:24 AM, "Kharche, Sanjay" <<a href="mailto:S.R.Kharche@exeter.ac.uk">S.R.Kharche@exeter.ac.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p>Hi David</p>
<p><br>
</p>
<p>Your suggestion of a loop within the python script did not work. I make 5k to 10k pngs,</p>
<p>and the process was killed at a few hundred.</p>
<p><br>
</p>
<p>Since my process is serial at the moment, my solution is that I take an input from a bash</p>
<p>script:</p>
<p><br>
</p>
<p>import system</p>
<p><br>
</p>
<p>i = system(argv[1])</p>
<p><br>
</p>
<p>(or something similar). And my python is for 1 i that is read in.</p>
<p><br>
</p>
<p>That gives me a consistent predictable (in terms of time it takes)</p>
<p>working of my visualisation.</p>
<p><br>
</p>
<p>cheers</p>
<p>Sanjay<br>
</p>
<div style="color:rgb(26,26,26)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> David E DeMarle <<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>><br>
<b>Sent:</b> 13 August 2015 14:02<br>
<b>To:</b> Kharche, Sanjay<br>
<b>Cc:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview] non-interactive viz on cluster</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_extra"><br>
Does this not work?</div>
<div class="gmail_extra">
<div class="gmail_extra">try: paraview.simple</div>
<div class="gmail_extra">except: from paraview.simple import *</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">i = 0</div>
<div class="gmail_extra">paraview.simple._DisableFirstRenderCameraReset()</div>
<div class="gmail_extra">RenderView1 = GetRenderView()</div>
<div class="gmail_extra">my_2d0_vts = XMLStructuredGridReader( FileName=['file_%i.vts' % (i)] )</div>
<div class="gmail_extra">RenderView1.CenterAxesVisibility = 0</div>
<div class="gmail_extra">RenderView1.OrientationAxesVisibility = 0</div>
<div class="gmail_extra">my_2d0_vts.PointArrayStatus = ['Unnamed0']</div>
<div class="gmail_extra">DataRepresentation1 = Show()</div>
<div class="gmail_extra">DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]</div>
<div class="gmail_extra">RenderView1.CenterOfRotation = [78.0, 58.5, 0.0]</div>
<div class="gmail_extra">Transform1 = Transform( Transform="Transform" )</div>
<div class="gmail_extra">a1_Unnamed0_PVLookupTable = GetLookupTableForArray( "Unnamed0", 1, NanColor=[0.25, 0.0, 0.0], RGBPoints=[0.0, 0.23, 0.299, 0.754, 1.0, 0.7059953924945706, 0.01625293517428646, 0.1500022472819457], VectorMode='Magnitude', ColorSpace='Diverging',
LockScalarRange=1 )</div>
<div class="gmail_extra">a1_Unnamed0_PiecewiseFunction = CreatePiecewiseFunction( Points=[-0.1, 0.0, 1.0, 1.0] )</div>
<div class="gmail_extra">ScalarBarWidgetRepresentation1 = CreateScalarBar( Title='Unnamed0', LabelFontSize=12, Enabled=1, LookupTable=a1_Unnamed0_PVLookupTable, TitleFontSize=12 )</div>
<div class="gmail_extra">GetRenderView().Representations.append(ScalarBarWidgetRepresentation1)</div>
<div class="gmail_extra">RenderView1.CameraPosition = [78.0, 58.5, 376.71107225273664]</div>
<div class="gmail_extra">RenderView1.CameraFocalPoint = [78.0, 58.5, 0.0]</div>
<div class="gmail_extra">RenderView1.CameraClippingRange = [372.94396153020926, 382.3617383365277]</div>
<div class="gmail_extra">RenderView1.CameraParallelScale = 97.5</div>
<div class="gmail_extra">DataRepresentation1.ColorArrayName = 'Unnamed0'</div>
<div class="gmail_extra">DataRepresentation1.LookupTable = a1_Unnamed0_PVLookupTable</div>
<div class="gmail_extra">Transform1.Transform = "Transform"</div>
<div class="gmail_extra">DataRepresentation2 = Show()</div>
<div class="gmail_extra">DataRepresentation2.ColorArrayName = 'Unnamed0'</div>
<div class="gmail_extra">DataRepresentation2.LookupTable = a1_Unnamed0_PVLookupTable</div>
<div class="gmail_extra">DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]</div>
<div class="gmail_extra">DataRepresentation1.Visibility = 0</div>
<div class="gmail_extra">Transform1.Transform.Scale = [1.0, -1.0, 0.0]</div>
<div class="gmail_extra">Text1 = Text()</div>
<div class="gmail_extra">RenderView1.CameraViewUp = [0.0, 1.0, 0.0]</div>
<div class="gmail_extra">RenderView1.CameraPosition = [78.0, -58.5, 376.71107225273664]</div>
<div class="gmail_extra">RenderView1.CameraFocalPoint = [78.0, -58.5, 0.0]</div>
<div class="gmail_extra">RenderView1.CenterOfRotation = [78.0, -58.5, 0.0]</div>
<div class="gmail_extra">RenderView1.CameraClippingRange = [372.94396153020926, 382.3617383365277]</div>
<div class="gmail_extra">Text1.Text = '2D macro re-entry'</div>
<div class="gmail_extra">DataRepresentation3 = Show()</div>
<div class="gmail_extra">DataRepresentation3.Color = [0.3333333333333333, 0.0, 0.4980392156862745]</div>
<div class="gmail_extra">WriteImage('reentry2d%06i.png' % (i))</div>
<div class="gmail_extra">Render()</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">for i in range(1,10,1):</div>
<div class="gmail_extra"> my_2d0_vts.FileName=['file_%i.vts' % (i)]</div>
<div class="gmail_extra"> Render()</div>
<div class="gmail_extra"> WriteImage('reentry2d%06i.png' % (i))</div>
<div class="gmail_extra"><br>
</div>
<br clear="all">
<div>
<div>David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote></div>