Skip to content

Validate input for get method (and others potentially) #38

Open
@ghost

Description

The get() method does not throw an error when using floating point numbers for the array indices. I know that it's kind of obvious to not do this, but I ran into a bug that was quite difficult to trace because the ndarray was returning data that seemed valid, but was just sometimes wrong.

Throwing an error when floating point numbers are used to access data seems quite helpful. I assume that this goes for the set method as well (and maybe others).

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