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

Polish

parent a2815998
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,9 @@ for year in range(1993,2019):
# change if there is a change over the number of days to average
num_of_days_to_avg = 7
# we iterate on the years because the segments are non sequential in time
# We iterate on the years because the segments are non sequential in
# time. For each year, we are going to process only the segments that
# begin in that year.
for yr in range(1993, 2019):
print(f'Current year: {yr}')
......
......@@ -36,17 +36,14 @@ t1 = time.perf_counter()
print(f'Loading done in {t1 - t0:.0f} s')
t0 = t1
#####################
# Set property maps #
#####################
g.vp['segment'] = g.new_vp('object') # this object will be a list
##############
# Processing #
##############
# Set property maps:
g.vp['segment'] = g.new_vp('object') # this object will be a list
del g.properties[("e", "weight")]
print('Collapsing into segments...')
g.set_fast_edge_removal()
verts_to_del = []
......
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