morphoclass.transforms.make_copy module¶
Implementation of the MakeCopy transform.
-
class
morphoclass.transforms.make_copy.MakeCopy(keep_fields=None)¶ Bases:
objectTransform that makes a copies of morphology data samples.
- Parameters
keep_fields (container of str) – The fields of Data objects to keep. If equal to None, then all fields are copied.
-
classmethod
clone_obj(key, obj)¶ Try to clone an object.
If the cloning fails then the original object is returned.
- Parameters
key (str) – The object name. Only used for printing information about the object.
obj – The object to clone.
- Returns
A clone of obj.
- Return type
new_obj