Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. [[-- -- -- --]
  2. [-- -- 0.0 0.3010299956639812]
  3. [-- -- -- 0.0]
  4. [-- -- -- --]]
  5.  
  6. numlist=[]
  7. for item in array:
  8. numlist.append(num)
  9.  
  10. for i in numlist:
  11. if i is not masked:
  12. print i
  13.  
  14. print(arr.compressed())
  15.  
  16. for val in arr.compressed():
  17. print(val)
  18.  
  19. import itertools as IT
  20. import numpy as np
  21.  
  22. arr = np.ma.masked_invalid(np.log(np.random.random((4,4))-0.5))
  23. arr1d = arr.ravel()
  24. for val, mask in IT.izip(arr1d, arr1d.mask):
  25. if not mask:
  26. print(val)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement