From: Stefan v. d. W. <st...@su...> - 2006-10-19 23:10:07
|
On Thu, Oct 19, 2006 at 01:59:49PM -0700, Christopher Barker wrote: > Travis Oliphant wrote: > > Actually something as simple as > >=20 > > class InfoArray(N.ndarray): > > pass > >=20 > > will allow you to add attributes to InfoArray. >=20 > Well, sure, but how the heck do you initialize it? Looks like x =3D N.array([1,2,3]) x.view(InfoArray) works. Thanks to everyone for the useful feedback! Cheers St=E9fan |