Skip to content

Upgrade to numpy > 2.0. Replace np.in1d to np.isin #15

@adinathaandreas-mobilus

Description

Hi, thanks for the wonderful package. I am currently running this for my project that necessitates using numpy >= 2.4.0
It worked fine on Numpy 2.2.0, and I discovered that the following lines:

useObjects = np.in1d(ColorsX, np.unique(labelsOnBranch))

useObjects = np.in1d(ColorsX, np.unique(labelsOnBranch))

is outdated since np.in1d is deprecated, and now replaced by np.isin in the newer version NumPy.

I have created the following PR. #14

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions