```python import numpy as np from cc3d import connected_components x = np.ones(3) x.flags.writeable = False connected_components(x) # Fails with `ValueError: buffer source array is read-only` ```