Closed
Description
Assigning to field of recarray is not working correctly. Example script is below.
import numpy as np
rec = np.recarray(1, dtype=[('x', float, 5)])
# Bug behaviour
rec[0].x = 1
print rec[0] # should print: (array([ 1., 1., 1., 1., 1.]),)
# but prints uninitialized float values
# Correct behaviour
rec.x = 2
print rec[0] # prints: (array([ 2., 2., 2., 2., 2.]),)
Metadata
Metadata
Assignees
Labels 33D5
No labels