|
From: Giovanni L. C. <glc...@gm...> - 2013-08-05 20:15:03
|
Hi Anthony,
what do you mean precisely? I tried
del ca[:,:]
but CArray does not support __delitem__. Looking in the documentation I could
only find a method called remove_rows, but it's in Table, not CArray. Maybe I am
missing something?
Thank,
Giovanni
On Mon 05 Aug 2013 03:43:42 PM EDT, pyt...@li...
wrote:
>
>> Hello Giovanni, I think you may need to del that slice and then possibly
>> repack. Hope this helps. Be Well Anthony On Mon, Aug 5, 2013 at 2:09 PM,
>> Giovanni Luca Ciampaglia < glc...@gm...> wrote:
>>> 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),
>>> chunkshape=(1,1000))
>>> ca[:,:] = False
>>> h5f.close()
>>> ***
>>>
>>> The resulting file takes 249K ...
>>>
>>> Best,
>>>
>>> --
>>> 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/
>>> ?gci...@in...
>>>
>
--
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/
✉ gci...@in...
|