Skip to content

Commit

Permalink
ML access egress fix from BCM network-wrangler#333
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Sep 6, 2024
1 parent 68c6504 commit e64d952
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions network_wrangler/roadwaynetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -2169,9 +2169,6 @@ def create_dummy_connector_links(
[gp_df, ml_df.add_prefix("ML_")], axis=1, join="inner"
)

access_set = ml_df.iloc[0]['access']
egress_set = ml_df.iloc[0]['egress']

access_df = gp_df.iloc[0:0, :].copy()
egress_df = gp_df.iloc[0:0, :].copy()

Expand All @@ -2190,6 +2187,7 @@ def _get_connector_references(ref_1: list, ref_2: list, type: str):
return out_location_reference

for index, row in gp_ml_links_df.iterrows():
access_set = row['ML_access']
if access_set == 'all' or row['A'] in access_set:
access_row = {}
access_row["A"] = row["A"]
Expand Down Expand Up @@ -2218,6 +2216,7 @@ def _get_connector_references(ref_1: list, ref_2: list, type: str):

access_df = access_df.append(access_row, ignore_index=True)

egress_set = row['ML_egress']
if egress_set == 'all' or row['B'] in egress_set:
egress_row = {}
egress_row["A"] = row["ML_B"]
Expand Down

0 comments on commit e64d952

Please sign in to comment.