cf.CHUNKSIZE

cf.CHUNKSIZE(*new_chunksize)[source]

Return or set the chunk size for data storage and processing.

When setting the chunk size, the amount of minimum amount of memory to be kept free as a temporary work space is also updated.

Parameters :
new_chunksize : int, optional

The new chunk size in bytes.

Returns :
out : int or None

If new_chunksize was not set then return the existing chunk size in bytes, otherwise return None.

Examples

>>> cf.CHUNKSIZE()
104857600
>>> cf.CHUNKSIZE(2**30)
>>> cf.CHUNKSIZE()
1073741824

Previous topic

cf.ATOL

Next topic

cf.FM_THRESHOLD

This Page