cf.Data.copy

Data.copy(array=True)[source]

Return a deep copy.

d.copy() is equivalent to copy.deepcopy(d).

Parameters
array: bool, optional

If True (the default) then copy the array, else it is not copied.

Returns
Data

The deep copy.

Examples

>>> e = d.copy()
>>> e = d.copy(array=False)