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]