Skip to content

AdvancedIndexing error messages show wrong axis when doing combined indexing #343

@wbernoudy

Description

@wbernoudy
>>> i = model.integer((2, 3, 5))
>>> i[1, [10, 2], [3, 4]]
...
IndexError: index's largest possible value 10 is out of bounds for axis 0 with size 3

That should show axis 1. This is because the combined indexing splits this operation into two nodes, and the error is coming from the second where [10, 2] is the on the first axis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions