fix main and geojson file
This commit is contained in:
parent
64618af861
commit
b7421fe22f
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
__pycache__/
|
||||
*.pyc
|
||||
.DS_Store
|
||||
.DS_Store
|
||||
.idea
|
File diff suppressed because it is too large
Load Diff
7
main.py
7
main.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user