2011/1/4, Dominik Szczerba <domi...@itis.ethz.ch>: >> feed it with values. Something like: >> >> carray = f.createCArray(...) >> carray[:] = your_numpy_array >> >> > Thanks for the example, but that makes the code longer and less elegant, is > there a solid reason for using a different syntax than with createArray?
No (that I can think of). The reason for the current syntax is that CArray evolved from the original EArray, and we defined the constructor simlarly to it. Having said this, I'd be glad to support passing a NumPy array directly into the constructor. Just file a bug in: http://www.pytables.org/trac so that I don't forget about it in the future. -- Francesc Alted ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users