In addition to Matt's answer:
Yes, we have a tmulti where you can store dates and other variables in a 
record-like TimeSeries.
However, there must be simpler:

Why are you using getattr to access the fields ? Your object tr is a record 
array, so you could use
for n in tr.dtype.names:
    print n, tr[n]

Alternatively, you can view tr as recarray, and then access the fields as 
attributes:
trv = tr.view(numpy.recarray)
for n in tr.dtype.names:
   print n, getattr(trv, n)

Note that you gonna get 0d-arrays in both cases, so you may want to use an 
extra .item()

_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to