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 <[email protected]<mailto:[email protected]>>
Date: Tue, 12 Jun 2012 14:10:49 -0400
To: V Gregory Weirs <[email protected]<mailto:[email protected]>>
Cc: Andrew Pearson 
<[email protected]<mailto:[email protected]>>, 
"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
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