I want to compare numpy array two scale and data
for exaple
scale = [1,0,0,0,1,0,0,0,1,0,0,0] first and fifth and ninth bit is 1
data1 = [8,2,0,1,0,0,1,0,1,0,0,0] -> NG, because fifth bit is `0`
data2 = [8,0,0,0,1,0,1,0,1,0,0,0] -> OK, because first ,fifth, ninth bit is more than 0
What I want to check is
Every positions where scale is 1 should be more than 0 in data
Is there any good numpy function to do this??