AequilibraE / aequilibrae

aequilibrae - Python package for transportation modeling

Home Page:https://www.aequilibrae.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Select link output is not correct

Jake-Moss opened this issue · comments

This is an issue to track the ongoing hunt for a correctness issue raised on group groups.

This branch has a test case for this issue https://github.com/Jake-Moss/aequilibrae/tree/select_link_bug_hunting

To document my current understanding of the issue I'll add little explanation here.

The output of the select link algorithm itself is correct, the issue lies in the mapping back to the true links. The values need to be mapped back in the following manner.
The index of non-zero entries within self.select_link_loading[name] correspond to values within self.crosswalk, the index of those values is then the __compressed_id__ of the link. Within the graph __compressed_id__s correspond to link_ids.