Skip to content

Instantly share code, notes, and snippets.

@Tristramg
Created February 9, 2011 12:05
Show Gist options
  • Save Tristramg/818367 to your computer and use it in GitHub Desktop.
Save Tristramg/818367 to your computer and use it in GitHub Desktop.
for i in range(6, len(l) - 1):
current_node = nodes_map[l[0]][l[i]]
self.session.add(PT_Edge(prev_stop, current_node, 0, departure, departure + tps_moyen, 0, 'Metro', str(lines_count)))
prev_stop = current_node
@Tristramg
Copy link
Author

            current_departure = departure
            for i in range(6, len(l) - 1):
                current_node = nodes_map[l[0]][l[i]]
                self.session.add(PT_Edge(prev_stop, current_node, 0, current_departure, current_departure + tps_moyen, 0, 'Metro', str(lines_count)))
                prev_stop = current_node
                current_departure += tps_moyen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment