cf.Data.to_memory

Data.to_memory(regardless=False, parallelise=False)[source]

Store each partition’s data in memory in place if the master array is smaller than the chunk size.

There is no change to partitions with data that are already in memory.

Parameters
regardless: bool, optional

If True then store all partitions’ data in memory regardless of the size of the master array. By default only store all partitions’ data in memory if the master array is smaller than the chunk size.

parallelise: bool, optional

If True than only move those partitions to memory that are flagged for processing on this rank.

Returns

None

Examples:

>>> d.to_memory()
>>> d.to_memory(regardless=True)