<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div><br>
</div>
<div>Oh, I see. How about if I change the ImageReader line:</div>
<div><br>
</div>
<div>
<div>for count in range(2,204):</div>
<div class="im">
<div>&nbsp; filename='/home/andy/Desktop/L2-1 Dicom/data8/rho_180x180x180_frame%04d_subs01_total.raw' % (count)</div>
<div>
<div>&nbsp; rho_180x180x180_frame0010_subs01_total_raw.FilePrefix=filename</div>
</div>
<div><br>
</div>
</div>
<div class="im">
<div>
<div>&nbsp; filename_out='/home/andy/Desktop/L2-1 Dicom/data8/frame_%04d.bmp' % (count)</div>
<div>&nbsp; WriteImage(filename_out)</div>
</div>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Pat Marion &lt;<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Tue, 12 Jun 2012 14:10:49 -0400<br>
<span style="font-weight:bold">To: </span>V Gregory Weirs &lt;<a href="mailto:vgweirs@sandia.gov">vgweirs@sandia.gov</a>&gt;<br>
<span style="font-weight:bold">Cc: </span>Andrew Pearson &lt;<a href="mailto:andrew.j.pearson@gmail.com">andrew.j.pearson@gmail.com</a>&gt;, &quot;<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>&quot; &lt;<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [Paraview] [EXTERNAL] Simple script severe slowdown in loop<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-size: 14px; font-family: Calibri, sans-serif; ">
<div>for count in range(2,204):</div>
<div class="im">
<div>&nbsp; filename='/home/andy/Desktop/L2-1 Dicom/data8/rho_180x180x180_frame%04d_subs01_total.raw' % (count)</div>
<div>
<div>&nbsp; rho_180x180x180_frame0010_subs01_total_raw = ImageReader( FilePrefix=filename )</div>
</div>
<div><br>
</div>
</div>
<div class="im">
<div>
<div>&nbsp; filename_out='/home/andy/Desktop/L2-1 Dicom/data8/frame_%04d.bmp' % (count)</div>
<div>&nbsp; WriteImage(filename_out)</div>
</div>
</div>
</span></span></blockquote>
</span>
</body>
</html>