district_heating_network_an.../main.py

15 lines
444 B
Python
Raw Normal View History

from DistrictHeatingNetworkCreator import DistrictHeatingNetworkCreator
# Initialize the class
network_creator = DistrictHeatingNetworkCreator(
'./input_files/buildings.geojson',
'./input_files/roads/geobase_mtl.shp'
)
# Create the network graph
network_graph = network_creator.run()
# Plot the network graph (optional)
2024-02-02 17:22:35 -05:00
for node, attrs in network_graph.nodes(data=True):
print(f"Node: {node}, Attributes: {attrs}")