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

Polish

parent 6fd42832
No related branches found
No related tags found
No related merge requests found
......@@ -101,11 +101,7 @@ print(t1 - t0, "s")
g.set_fast_edge_removal()
##################################
# Calculating the Cost Function: #
##################################
# setup the dicts for the shapefiles and the ishape_last files
# Set up the dictionarys for the shapefiles and the ishape_last files:
shp_tr_dir = input('Directory containing %Y/SHPC_(anti|cyclo): ')
handlers = {}
......@@ -150,7 +146,8 @@ for yr in range(1993, 2019):
last = report_graph.node_to_date_eddy(segment[-1], e_overestim)
last_days = last['date_index']
last_date = datetime.date(1950,1,1) + datetime.timedelta(last['date_index'])
last_date = datetime.date(1950, 1, 1) \
+ datetime.timedelta(last['date_index'])
last_year = last_date.year
# calculate the location in the shapefile
......
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