metawards.utils.add_lookup

metawards.utils.add_lookup(network: metawards._network.Network, nthreads: int = 1)[source]

Add in metadata about the network that can be used to look up wards by name of location or region etc.

This will add the data to the network.ward_info object, as a list ensuring that network.nodes[i] has its info in network.ward_info[i]