Yes, answers my question exactly. Thanks.

On Thu, Dec 2, 2010 at 12:23 PM, Christopher Barker
<[email protected]>wrote:

> Hi folks,
>
> During my numpy talk, someone (James?) asked about alignment issues in
> custom datatype creation. As I suspected, the numpy developers were well
> aware of the issue. the numpy.dtype() constructor takes an optional flag:
> "align":
>
> dtype(obj, align=False, copy=False)
>
> ...
> align : bool, optional
>    Add padding to the fields to match what a C compiler would output
>    for a similar C-struct. Can be ``True`` only if `obj` is
>    a dictionary or a comma-separated string.
>
>
> Just noticed this, so I figured I'd let y'all know.
>
> -Chris
>
>
>
>
>
>
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R            (206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115       (206) 526-6317   main reception
>
> [email protected]
>



-- 
Some radio waves were modulated in the creation of this email.

Reply via email to