Skip to content
Snippets Groups Projects
Commit 403cfb39 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Remove intermediary variable `len_seg`

parent 2ec23457
No related branches found
No related tags found
No related merge requests found
...@@ -200,9 +200,7 @@ for n in g.vertices(): ...@@ -200,9 +200,7 @@ for n in g.vertices():
if n.out_degree() != 0: if n.out_degree() != 0:
# Define properties for end of the segment: # Define properties for end of the segment:
len_seg = len(g.vp.inst_eddies[n]) if ip_beg < len(g.vp.inst_eddies[n]):
if ip_beg < len_seg:
# We have to read more from the shapefiles and redefine # We have to read more from the shapefiles and redefine
# properties. # properties.
ip_end = search_end(g.vp.inst_eddies[n], max_delta) ip_end = search_end(g.vp.inst_eddies[n], max_delta)
...@@ -217,7 +215,7 @@ for n in g.vertices(): ...@@ -217,7 +215,7 @@ for n in g.vertices():
args.orientation, args.orientation,
) )
else: else:
# assertion: ip_end < ip_beg < len_seg # assertion: ip_end < ip_beg < len(g.vp.inst_eddies[n])
# We can use part of the properties from the beginning # We can use part of the properties from the beginning
# of the segment. # of the segment.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment