You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError Traceback (most recent call last)
<ipython-input-5-caa57490a0a5> in <module>()
----> 1 a[:, :, 0]
/Users/jrporter/projects/enspara/enspara/util/array.py in __getitem__(self, iis)
458 # tuples get index conversion from 2d to 1d
459 elif type(iis) is tuple:
--> 460 first_dimension, second_dimension = iis
461 # if the first dimension is a slice, converts both sets of indices
462 if type(first_dimension) is slice:
ValueError: too many values to unpack (expected 2)
So does a[:, 0, :] and a[0, :, :].
Also, the dtype of a is object, which isn't what I expected (since they're ints) and the shape is [2, 2, None] where I expected [2, None, 2]...
The text was updated successfully, but these errors were encountered:
Fails with
So does
a[:, 0, :]
anda[0, :, :]
.Also, the
dtype
ofa
isobject
, which isn't what I expected (since they're ints) and the shape is[2, 2, None]
where I expected[2, None, 2]
...The text was updated successfully, but these errors were encountered: