You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use a script that errored out when applying a project card that added new roadway links. On digging, I found it was because the RoadwayNetwork.shape_foreign_key was being used to access columns in both the shapes_df and links_df:
I think this is ok but it should be documented clearly and also fail earlier by checking that links_df has the column, in the same way that the check is done for shapes_df:
Describe the bug
I was trying to use a script that errored out when applying a project card that added new roadway links. On digging, I found it was because the
RoadwayNetwork.shape_foreign_key
was being used to access columns in both theshapes_df
andlinks_df
:network_wrangler/network_wrangler/roadwaynetwork.py
Lines 1727 to 1732 in 6ed2240
I think this is ok but it should be documented clearly and also fail earlier by checking that
links_df
has the column, in the same way that the check is done forshapes_df
:network_wrangler/network_wrangler/roadwaynetwork.py
Lines 507 to 512 in 6ed2240
Status
To Reproduce
Steps to reproduce the behavior:
shapes_df
but notlinks_df
Failing tests
Triggering line of code
Thoughts on resolution
Full stack trace
Environment
Operating system:
Context (conda, jupyter, etc):
Environment (e.g. output from
conda list
):The text was updated successfully, but these errors were encountered: