porespy.networks.label_boundaries#
- porespy.networks.label_boundaries(network, labels=[['left', 'right'], ['front', 'back'], ['top', 'bottom']], tol=1e-09)#
Create boundary pore labels based on proximity to axis extrema
- Parameters:
network (dict) – The network stored as a dictionary as returned from the
regions_to_networkfunctionlabels (list of lists) – A 3-element list, with each element containing a pair of strings indicating the label to apply to the beginning and end of each axis. The default is
[['left', 'right'], ['front', 'back'], ['top', 'bottom']]which will apply the label'left'to all pores with the minimum x-coordinate, and'right'to the pores with the maximum x-coordinate, and so on.
- Returns:
network – The same
networkas passed in but with new boolean arrays added for the boundary labels.- Return type:
dict
Examples
Click here to view online example.