Oh, I see. How about if I change the ImageReader line:

for count in range(2,204):
  filename='/home/andy/Desktop/L2-1 
Dicom/data8/rho_180x180x180_frame%04d_subs01_total.raw' % (count)
  rho_180x180x180_frame0010_subs01_total_raw.FilePrefix=filename

  filename_out='/home/andy/Desktop/L2-1 Dicom/data8/frame_%04d.bmp' % (count)
  WriteImage(filename_out)


From: Pat Marion <pat.mar...@kitware.com<mailto:pat.mar...@kitware.com>>
Date: Tue, 12 Jun 2012 14:10:49 -0400
To: V Gregory Weirs <vgwe...@sandia.gov<mailto:vgwe...@sandia.gov>>
Cc: Andrew Pearson 
<andrew.j.pear...@gmail.com<mailto:andrew.j.pear...@gmail.com>>, 
"paraview@paraview.org<mailto:paraview@paraview.org>" 
<paraview@paraview.org<mailto:paraview@paraview.org>>
Subject: Re: [Paraview] [EXTERNAL] Simple script severe slowdown in loop

for count in range(2,204):
  filename='/home/andy/Desktop/L2-1 
Dicom/data8/rho_180x180x180_frame%04d_subs01_total.raw' % (count)
  rho_180x180x180_frame0010_subs01_total_raw = ImageReader( FilePrefix=filename 
)

  filename_out='/home/andy/Desktop/L2-1 Dicom/data8/frame_%04d.bmp' % (count)
  WriteImage(filename_out)
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to