[Numpy-discussion] PyTables, array and recarray

Pierre GM pgmdevlist@gmail....
Fri May 30 11:20:37 CDT 2008


On Friday 30 May 2008 11:17:18 Hanno Klemm wrote:
Hanno,
Try a view:
> >>> f.close()
> >>> f = t.openFile('test.h5', 'r')
> >>> b = f.root.test[:].view(N.recarray)

Views are often the most efficient way to change the type of an array.


More information about the Numpy-discussion mailing list