subclassing is what I was looking for.
Indeed the code is almost available at
http://docs.scipy.org/doc/numpy/user/basics.subclassing.html#simple-example-adding-an-extra-attribute-to-ndarray
I just created a dictionary variable which I called 'metadata'
I had to overload the __repr__ method to prin
On 26 Jan 2012, at 13:30, Paul Anton Letnes wrote:
> If by "store" you mean "store on disk", I recommend h5py datasets and
> attributes. Reportedly pytables is also good but I don't have any
> first hand experience there. Both python modules use the hdf5 library,
> written in C/C++/Fortran.
>
> P
If by "store" you mean "store on disk", I recommend h5py datasets and
attributes. Reportedly pytables is also good but I don't have any
first hand experience there. Both python modules use the hdf5 library,
written in C/C++/Fortran.
Paul
On Wed, Jan 25, 2012 at 7:47 PM, Val Kalatsky wrote:
>
> I
I believe there are no provisions made for that in ndarray.
But you can subclass ndarray.
Val
On Wed, Jan 25, 2012 at 12:10 PM, Emmanuel Mayssat wrote:
> Is there a way to store metadata for an array?
> For example, date the samples were collected, name of the operator, etc.
>
> Regards,
> --
> E
Is there a way to store metadata for an array?
For example, date the samples were collected, name of the operator, etc.
Regards,
--
Emmanuel
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discuss