Removed busy loop from hooke/plugin/flatfilts.py.
authorW. Trevor King <wking@drexel.edu>
Tue, 4 May 2010 07:16:05 +0000 (03:16 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 4 May 2010 07:16:05 +0000 (03:16 -0400)
Perhaps it was an attempt to pause briefly?  If so, time.sleep() would
be better.  It wasn't much of a pause though:
  $ time python -c ''
  real    0m0.111s
  user    0m0.089s
  sys     0m0.020s
  $ time python -c 'for i in range(1000): k=0'
  real    0m0.115s
  user    0m0.090s
  sys     0m0.024s

hooke/plugin/flatfilts.py

index e19964c71a2dfd01c8f710916402a16e35a024a2..faacc115a5f0574a3b671348622fac5675cad853 100644 (file)
@@ -325,9 +325,6 @@ class flatfiltsCommands(object):
                 item.curve=None #empty the item object, to further avoid memory leak
                 notflat_list.append(item)
 
-            for i in range(1000):
-                k=0
-
         #Warn that no flattening had been done.
         if not ('flatten' in self.config['plotmanips']):
             print 'Flatten manipulator was not found. Processing was done without flattening.'