cf.Data.loadd

Data.loadd(d, chunk=True)[source]

Reset the data array in place from a data array serialization.

See also

dumpd

Parameters
d: dict

A dictionary serialization of a cf.Data object, such as one as returned by the dumpd method.

chunk: bool, optional

If True (the default) then the reset data array will be re-partitions according the current chunk size, as defined by the cf.CHUNKSIZE function.

Returns

None

Examples:

>>> d = Data([[1, 2, 3]], 'm')
>>> e = Data([6, 7, 8, 9], 's')
>>> e.loadd(d.dumpd())
>>> e.equals(d)
True
>>> e is d
False
>>> e = Data(loadd=d.dumpd())
>>> e.equals(d)
True