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

Remove intermediate variables

Remove intermediate variables `first_pos` and `last_pos`.
parent 18c10609
No related branches found
No related tags found
No related merge requests found
...@@ -154,15 +154,12 @@ for n in g.vertices(): ...@@ -154,15 +154,12 @@ for n in g.vertices():
last['date_index'], last['date_index'],
last['eddy_index']) last['eddy_index'])
# grab the centers: # Grab the positions of the extrema and store them in the vertex
first_pos = handlers[first_SHPC]["readers"]["extremum"]\ # properties:
.shape(first_loc).points[0] g.vp.pos_first[n] = handlers[first_SHPC]["readers"]["extremum"]\
last_pos = handlers[last_SHPC]["readers"]["extremum"]\ .shape(first_loc).points[0] # [in degrees]
.shape(last_loc).points[0] g.vp.pos_last[n] = handlers[last_SHPC]["readers"]["extremum"]\
.shape(last_loc).points[0] # [in degrees]
# Store positions in the vertex properties:
g.vp.pos_first[n] = first_pos # [deg, deg]
g.vp.pos_last[n] = last_pos # [deg, deg]
if (num_of_days > num_of_days_to_avg): if (num_of_days > num_of_days_to_avg):
# The segment is longer than the number of days over which to average # The segment is longer than the number of days over which to average
......
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