spectrochempy.copy
- copy(deep=True, keepname=False, **kwargs)[source]
Make a disconnected copy of the current object.
- Parameters:
deep (bool, optional) – If True a deepcopy is performed which is the default behavior.
keepname (bool) – If True keep the same name for the copied object.
- Returns:
object – An exact copy of the current object.
Examples
>>> nd1 = scp.NDArray([1. + 2.j, 2. + 3.j]) >>> nd1 NDArray: [complex128] unitless (size: 2) >>> nd2 = nd1 >>> nd2 is nd1 True >>> nd3 = nd1.copy() >>> nd3 is not nd1 True