Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

cannot use minpy.numpy.newaxis? #189

Open
Grayscale-cc opened this issue Jul 31, 2019 · 0 comments
Open

cannot use minpy.numpy.newaxis? #189

Grayscale-cc opened this issue Jul 31, 2019 · 0 comments

Comments

@Grayscale-cc
Copy link

import minpy.numpy as np
a = np.zeros((3,3))
b = a[:, :, np.newaxis]

The following error occurred when I executed the above code:
b = a[:, :, np.newaxis]
File "/home/ai/anaconda3/envs/mask/lib/python3.6/site-packages/minpy/array.py", line 440, in getitem
np_index = tuple(_make_numpy_index(i) for i in index)
File "/home/ai/anaconda3/envs/mask/lib/python3.6/site-packages/minpy/array.py", line 440, in
np_index = tuple(_make_numpy_index(i) for i in index)
File "/home/ai/anaconda3/envs/mask/lib/python3.6/site-packages/minpy/array.py", line 493, in _make_numpy_index
np_index = wrap(raw_index).asnumpy()
AttributeError: 'NoneType' object has no attribute 'asnumpy'.

Is there no newaxis in minpy now?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant