Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1. list = [
  2. "o9_00017   1   0   0",
  3. "o9_00022   1   0   0",
  4. "o9_00133   1   0   0",
  5. "o9_00168   1   0   0",
  6. "o9_00644   1   0   0",
  7. "o9_00797   1   0   0",
  8. "o9_00815   1   0   0",
  9. "o9_01024   1   0   0",
  10. "o9_01035   1   0   0",
  11. "o9_01079   1   0   0",
  12. "o9_01175   1   0   0",
  13. "o9_01436   1   0   0",
  14. "o9_01496   1   0   0",
  15. "o9_01584   1   0   0",
  16. "o9_01621   1   0   0",
  17. "o9_01680   0   1   0",
  18. "o9_01765   0   1   0",
  19. "o9_01936   1   0   0",
  20. "o9_01953   1   0   0",
  21. ]
  22.  
  23. results = []
  24.  
  25. for i in list:
  26.     manifold = i[0:8]
  27.     M = Manifold(manifold)
  28.  
  29.     if float(M.volume()) > 0 and float(M.volume()) <= 9.14:
  30.         results.append(manifold)
  31.     else:
  32.         print "Excluding:", M.volume()
  33.  
  34. print " "
  35. print "============"
  36. print "Results"
  37. print "============"
  38.  
  39. for i in results:
  40.     print i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement