clone_pores¶
- openpnm.topotools.clone_pores(network, pores, labels=['clone'], mode='parents')[source]¶
Clones the specified pores and adds them to the network
- Parameters
network (GenericNetwork) – The Network object to which the new pores are to be added
pores (array_like) – List of pores to clone
labels (str, or list[str]) – The labels to apply to the clones, default is ‘clone’
mode (str) –
Controls the connections between parents and clones. Options are:
’parents’: (Default) Each clone is connected only to its parent
- ’siblings’: Clones are only connected to each other in the same
manner as parents were connected
’isolated’: No connections between parents or siblings