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

Change assumed directory structure

But we should find some way not to impose a directory structure to the
user.
parent 0202db64
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,7 @@ ishape_last = {}
shp_tr_dir = input('Directory containing %Y/SHPC_(anti|cyclo): ')
for year in range(1993,2019):
shp_dir = path.join(shp_tr_dir, f'SHPC_{orientation}_{year}')
shp_dir = path.join(shp_tr_dir, f'{year}/SHPC_{orientation}')
extremum[year] = shapefile.Reader(path.join(shp_dir, 'extremum.shp'))
max_speed[year] = shapefile.Reader(path.join(shp_dir, 'max_speed_contour.shp'))
ishape_last[year] = loadtxt(path.join(shp_dir, 'ishape_last.txt'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment