Skip to content

connected_components fails on immutable arrays #128

Description

@vovaf709
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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions