fix main and geojson file

This commit is contained in:
Majid Rezaei 2024-06-07 09:23:01 -04:00
parent 64618af861
commit b7421fe22f
3 changed files with 2542 additions and 234 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
__pycache__/
*.pyc
.DS_Store
.DS_Store
.idea

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
from DistrictHeatingNetworkCreator import DistrictHeatingNetworkCreator
# building_file = "./input_files/buildings.geojson"
# road_file = "./input_files/roads/geobase_mtl.shp"
# Initialize the class
network_creator = DistrictHeatingNetworkCreator(
'./input_files/buildings.geojson',
@ -9,6 +10,4 @@ network_creator = DistrictHeatingNetworkCreator(
# Create the network graph
network_graph = network_creator.run()
# Plot the network graph (optional)
for node, attrs in network_graph.nodes(data=True):
print(f"Node: {node}, Attributes: {attrs}")
network_creator.plot_network_graph(network_graph)