Skip to content
This repository was archived by the owner on Feb 17, 2023. It is now read-only.
This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Biggus allows indexes which aren't allowed by numpy #187

Description

@djkirkham
>>> import biggus
>>> import numpy as np
>>> a = np.arange(5)
>>> b = biggus.NumpyArrayAdapter(a)
>>> c = b[((1,),)]
>>> c.ndarray()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../biggus/_init.py", line 1455, in ndarray
    array = self._apply_keys()
  File ".../biggus/_init.py", line 1525, in _apply_keys
    array = self.concrete.__getitem__(keys)
IndexError: unsupported iterator index

This is the root of a hard-to-track-down bug in Iris, so it would be useful if an error was returned when the array was first indexed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions