Change negation to bitwise negation on boolean array

Getting deprecation warning from numpy