Skip to content
Snippets Groups Projects
Commit 41ca48cf authored by Ray Garcia's avatar Ray Garcia :scream_cat:
Browse files

add count of masked values to debug output

parent 4c6efcab
No related branches found
Tags v20170927 v20170928
No related merge requests found
......@@ -569,6 +569,8 @@ def debug(pvda):
"""
for P, V, D, A in pvda:
print("{}\n{}:\n\tdim: {}\n\tatt: {}\n\tdata: {}".format('_'*64, '/'.join(P), repr(D), repr(A), repr(V)))
if hasattr(V, 'mask'):
print("{}/{} values masked".format(np.sum(V.mask.ravel()), len(V.mask.ravel())))
yield P, V, D, A
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment