[docs]@_geodocsdefequivalent_diameter(network,throat_area='throat.cross_sectional_area',throat_shape='circle',):r""" Calculates the diameter of a cirlce or edge-length of a sqaure with same area as the throat. Parameters ---------- %(network)s %(At)s throat_shape : str The shape cross-sectional shape of the throat to assume when back-calculating from the area. Options are 'circle' (default) or 'square'. Returns ------- diameters : ndarray A numpy ndarray containing throat diameter values """area=network[throat_area]ifthroat_shape.startswith('circ'):value=2*_np.sqrt(area/_np.pi)elifthroat_shape.startswith('square'):value=_np.sqrt(area)returnvalue