wagdav/dimarray

Ellipsis support in _dims_getitem

Closed this issue · 1 comments

In the following code:

import numpy as np
from dimarray import DimArray
dims = [('a', [0,1,2,3,4,5]), ('b',[0,1,2])]
a = DimArray(np.arange(6*3).reshape((6,3)), dims=dims)
a[..., 0]

should give the same as a[:, 0] but results in a "TypeError: list indices must be integers, not ellipsis" instead.

Solved in commit e0a64cb