Skip to content

numpy.array() should have flag copy=False #5

@allesspassig

Description

@allesspassig

This call is slow when repeated for every possible centroid because copy=True by default

self.dataArr = numpy.array(dataArr)

This warning is erroneous (and this call is slow when repeated for every possible centroid because copy=True by default)

PyGuide/python/Centroid.py

Lines 664 to 666 in e25f446

Warning: does not copy the data unless necessary.
"""
return numpy.array(arr, dtype=desType, order="C")

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