[SciPy-dev] Example of power of new data-type descriptors.
Charles R Harris
charlesr.harris at gmail.com
Sun Jan 1 13:43:50 CST 2006
On 12/30/05, Francesc Altet <faltet at carabos.com> wrote:
> A Dilluns 26 Desembre 2005 10:00, Travis Oliphant va escriure:
> > I'd like more people to know about the new power that is in scipy core
> > due to the general data-type descriptors that can now be used to define
> > numeric arrays. Towards that effort here is a simple example (be sure
> > to use latest SVN -- there were a coupld of minor changes that improve
> > usability made recently). Notice this example does not use a special
> > "record" array subclass. This is just a regular array.
> IMO, this is very good stuff and it opens the door to support
> homogeneous, heterogeneous and character strings in just one object.
> That makes the inclusion of such an object in Python a very big
> improvement because people will finally have a very effective
> container for virtually *any* kind of large datasets in an easy way.
> I'm personally very excited about this new functionality :-)
I wonder if it couldn't be adapted to read binary c structures off disk.
There are lots of data acquisition programs that store their data that way,
even though doing so introduces all sorts of packing and alignment problems
due differences between compilers and architectures.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scipy-dev