Skip to content

Bug in masked array indexing. #7493

Closed
@kawing-chiu

Description

@kawing-chiu

This simple indexing operation

ma = np.ma.zeros(5000, dtype=[('symbol', 'O')])
print(ma[0])

fails with a

ValueError: Setting void-array with object members using buffer.

exception. While the non-masked version just works:

arr = np.zeros(5000, dtype=[('symbol', 'O')])
print(arr[0])

Numpy version 1.11.0 on python 3.5.1 on arch linux.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions