26 Sep
2007
26 Sep
'07
5:40 p.m.
I have a record array r and I want to add a new field to it. I have
been looking at setfield but I am not sure how to use it for this
purpose. Eg
# r is some npy record array
N = len(r)
x = npy.zeros(N)
# add array of floats x to r with dtype name 'jdh' and type '
6020
Age (days ago)
6029
Last active (days ago)
4 comments
3 participants
participants (3)
-
Barry Wark
-
John Hunter
-
Robert Kern