metawards.utils.add_wards_network_distance

metawards.utils.add_wards_network_distance(network: Network, nthreads: int = 1)

Reads the location data in network.parameters.input_files.position and adds those locations to all of the nodes in the passed network. Then it calculates all of the distances between the nodes for each link and puts that into the ‘distance’ property of each link