How to change the chunklen of an existing bcolz carray?

23 views
Skip to first unread message

sk

unread,
Jul 16, 2017, 1:22:07 AM7/16/17
to bcolz
Hi,

I need to change the chunklen of an existing carray and wonder how that can be done.

Thank you!

sk

unread,
Jul 16, 2017, 5:44:55 AM7/16/17
to bcolz
Found the solution:

new_carray = bcolz.carray(old_carray, expectedlen=16)

Still not sure why the new_carray has a chunklen of 4 afterwards



Francesc Alted

unread,
Jul 16, 2017, 2:30:57 PM7/16/17
to Bcolz
Hi Sk,

I think you are after the `chunklen` argument:


With that:

new_carray = bcolz.carray(old_carray, chunklen=XXX)

Please note that, in order to allow for reasonable compression ratios, chunklen should be in the 32KB ~ 4MB ballpark.

Francesc

--
You received this message because you are subscribed to the Google Groups "bcolz" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bcolz+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Francesc Alted
Reply all
Reply to author
Forward
0 new messages