Skip to content

Commit

Permalink
Cleans non-needed nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
pveigadecamargo committed Jan 27, 2024
1 parent e0b0de6 commit efb3f3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aequilibrae/project/network/osm/osm_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def doWork(self):
self.__worksetup()
node_count = self.data_structures()
self.importing_links(node_count, conn)
conn.execute(
"DELETE FROM nodes WHERE node_id NOT IN (SELECT a_node FROM links union all SELECT b_node FROM links)"
)
self.__emit_all(["finished_threaded_procedure", 0])

def data_structures(self):
Expand Down

0 comments on commit efb3f3a

Please sign in to comment.