Hello all,

is there a way to clear out a chunk from a CArray? I noticed that setting the 
data to zero actually takes disk space, i.e.

from tables import open_file, BoolAtom

h5f = open_file('test.h5', 'w')
ca = h5f.create_carray(h5f.root, 'carray', BoolAtom(), shape=(1000,1000), 
ca[:,:] = False

The resulting file takes 249K ...


Giovanni Luca Ciampaglia

Postdoctoral fellow
Center for Complex Networks and Systems Research
Indiana University

✎ 910 E 10th St ∙ Bloomington ∙ IN 47408
☞ http://cnets.indiana.edu/
✉ gciam...@indiana.edu

Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
Pytables-users mailing list

Reply via email to