This should be quicker as we're not building a Python list and converting to numpy:

```python
idx = np.ones(ids.shape, dtype=bool)
```