Skip to content

Commit

Permalink
fix bitwise (#839)
Browse files Browse the repository at this point in the history
Co-authored-by: Luigi Dello Stritto <[email protected]>
  • Loading branch information
DelloStritto and Luigi Dello Stritto authored Dec 4, 2023
1 parent 4a18155 commit 12bf79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine_learning_hep/bitwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
def tag_bit_df(dfin, namebitmap, activatedbit):
mask_on = reduce(operator.or_, ((1 << bit) for bit in activatedbit[0]), 0)
mask_off = reduce(operator.or_, ((1 << bit) for bit in activatedbit[1]), 0)
ar = dfin[namebitmap].values.astype['int']
ar = dfin[namebitmap].values.astype(int)
return np.logical_and(np.bitwise_and(ar, mask_on) == mask_on,
np.bitwise_and(ar, mask_off) == 0)

Expand Down

0 comments on commit 12bf79d

Please sign in to comment.