Skip to content

Commit

Permalink
remove multiline weld in restriction_welder()
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Dec 6, 2020
1 parent e8e8a6c commit 81c685a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tigernet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,8 @@ def restriction_welder(net):
index = weld_ss.loc[(weld_ss[net.attr2] == keep_id)].index[0]
net.s_data.loc[index, net.geo_col] = weld

""" ########## This should actually never occur.
############## It should be resolved in ``_weld_MultiLineString()``
# if the weld resulted in a MultiLineString remove ids from
# from `drop_ids` and set to new for each n+1 new segment.
if type(weld) == MultiLineString:
Expand All @@ -1384,6 +1386,7 @@ def restriction_welder(net):
for idx in keeps_ids:
if idx in drop_ids:
drop_ids.remove(idx)
"""

# remove original segments used to create the new, welded
# segment(s) from the full segments dataframe
Expand Down

0 comments on commit 81c685a

Please sign in to comment.