- TransientIonicConduction.num_pores(labels='all', mode='or')#
Returns the number of pores of the specified labels
labels (list of strings) – The pore labels that should be included in the count. If not supplied, all pores are counted.
labels – Label of pores to be returned
mode (str, optional) –
Specifies how the count should be performed. The options are:
Returns the labels that are assigned to any of the given locations. Also accepts ‘union’ and ‘any’
Labels that are present on all the given locations. also accepts ‘intersection’ and ‘all’
Labels that are present on only one of the given locations.Also accepts ‘exclusive_or’
Labels that are not present on any of the given locations. Also accepts ‘not’ and ‘none’
Labels that are present on all but one of the given locations
Labels that are present on more than one of the given locations.
Np – Number of pores with the specified labels
- Return type:
Technically, ‘nand’ and ‘xnor’ should also count pores with none of the labels, however, to make the count more useful these are not included.