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

cannot use minpy.numpy.newaxis? #189

@Grayscale-cc

Description

@Grayscale-cc

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions