cf.Domain.insert_transform

Domain.insert_transform(transform, key=None, copy=True, replace=False)[source]

Insert a transform object into the domain in place.

Parameters :
transform : cf.Transform

The new transform object.

key : str, optional

The identifier for the new transform object. By default a unique identifier will be generated.

copy : bool, optional

If False then the transform object is not copied before insertion. By default it is copied.

replace : bool, optional

If True then replace an existing transform object with the same identifier. By default an exception is raised if there is an existing transform object with the same identifier.

Returns :
out : str

The internal identifier of the new transform object.

Examples

>>>

Previous topic

cf.Domain.insert_dim

Next topic

cf.Domain.item

This Page