Skip to content

Commit

Permalink
updated maz connectors to only include drive access==1
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-git committed Sep 9, 2024
1 parent fb3fabc commit dfcf88e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lasso/emme.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,15 +388,19 @@ def prepare_table_for_drive_network(
~(links_df.B.isin(parameters.taz_N_list)) &
( # ft <= 7 should be kept in the nework
(
(links_df.drive_access == 1) &
(links_df.ft <= maximum_ft)
(links_df.ft <= maximum_ft) &
(links_df.drive_access == 1)
) |
( # is a tollsegment, should be kept within the network
(links_df.tollseg != 0) |
(links_df.tollbooth != 0)
)
)
) | links_df["has_bus_on_link"] | links_df["managed_lane_connector"] | (links_df["cntype"] == "MAZ") # Maz is filtered out by links_df.fg <= maximum_ft
) | (
links_df["has_bus_on_link"] |
links_df["managed_lane_connector"] |
((links_df["cntype"] == "MAZ") & (links_df.drive_access == 1)) # Maz is filtered out by links_df.fg <= maximum_ft
)
].copy()

if not regenerate_connectors:
Expand Down

0 comments on commit dfcf88e

Please sign in to comment.