[Numpy-discussion] .bytes

Matthieu Brucher matthieu.brucher@gmail....
Sun Oct 14 09:48:04 CDT 2007


Hi,

In the description field, you have itemsize which is what you want.

Matthieu

2007/10/14, Yves Revaz <yves.revaz@obspm.fr>:
>
> Dear list,
>
> I'm translating codes from numarray to numpy.
> Unfortunately, I'm unable to find the equivalent of the command
> that give the number of bytes for a given type :
> using numarray I used :
>
> >>> Float32.bytes
> 4
>
> I'm sure there is a solution in numpy,
> but I'm unable to find it.
>
> Thanks,
>
> Yves
>
> --
>                                                 (o o)
> --------------------------------------------oOO--(_)--OOo-------
>   Yves Revaz
>   Lerma Batiment A           Tel : ++ 33 (0) 1 40 51 20 79
>   Observatoire de Paris      Fax : ++ 33 (0) 1 40 51 20 02
>   77 av Denfert-Rochereau    e-mail : yves.revaz@obspm.fr
>   F-75014 Paris              Web : http://www.lunix.ch/revaz/
>   FRANCE
> ----------------------------------------------------------------
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20071014/4c9930dc/attachment.html 


More information about the Numpy-discussion mailing list