Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[-- -- -- --]
- [-- -- 0.0 0.3010299956639812]
- [-- -- -- 0.0]
- [-- -- -- --]]
- numlist=[]
- for item in array:
- numlist.append(num)
- for i in numlist:
- if i is not masked:
- print i
- print(arr.compressed())
- for val in arr.compressed():
- print(val)
- import itertools as IT
- import numpy as np
- arr = np.ma.masked_invalid(np.log(np.random.random((4,4))-0.5))
- arr1d = arr.ravel()
- for val, mask in IT.izip(arr1d, arr1d.mask):
- if not mask:
- print(val)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement