Re: [Pytables-users] Some experiences with PyTables

2011-12-07 Thread Josh Moore
On Dec 6, 2011, at 11:06 PM, Anthony Scopatz wrote: ...snip... >> 5. The reference manual for numpy contains _many_ small examples. They >> partially compensate for any lack of precision or excessive precision in >> the documents. Also many people learn best from examples. >> >> > If you wou

Re: [Pytables-users] Some experiences with PyTables

2011-12-07 Thread Francesc Alted
2011/12/6 Anthony Scopatz > This is a function of the underlying HDF5 storage mechanism and not > explicitly PyTables. > When storing fixed length strings, the array of characters it is converted > to *must* be exactly > length-N. When serializing a string of length-M, HDF5 does the following: >

Re: [Pytables-users] Some experiences with PyTables

2011-12-07 Thread Francesc Alted
2011/12/7 Francesc Alted > What you are saying is correct, except that the 'guilty' of dropping the > trailing null characters is NumPy, not HDF5. Look at this: > > In [27]: import numpy as np > > In [28]: np.array(["aaa"]) > Out[28]: > array(['aaa'], > dtype='|S3') > > In [29]: np.array

Re: [Pytables-users] Some experiences with PyTables

2011-12-07 Thread Anthony Scopatz
On Wed, Dec 7, 2011 at 5:51 AM, Josh Moore wrote: > > On Dec 6, 2011, at 11:06 PM, Anthony Scopatz wrote: > > ...snip... > > >> 5. The reference manual for numpy contains _many_ small examples. They > >> partially compensate for any lack of precision or excessive precision in > >> the documents.