FYI:

```
>>> import numpy as np
>>> a = np.array([0, 1], dtype=np.bool)
>>> print a
[False  True]
>>> print ~a
[ True False]
```