Skip to content

Commit

Permalink
line of code is now also compatible with the RGI7 shapefile names. (#…
Browse files Browse the repository at this point in the history
…1512)

Co-authored-by: Alexander Fischer <mail@alexfischer.eu>
  • Loading branch information
afisc and Alexander Fischer committed Jan 4, 2023
1 parent 9d17303 commit 8ab12c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oggm/utils/_downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ def get_rgi_region_file(region, version=None, reset=False):
"""

rgi_dir = get_rgi_dir(version=version, reset=reset)
f = list(glob.glob(rgi_dir + "/*/{}_*.shp".format(region)))
f = list(glob.glob(rgi_dir + "/*/*{}_*.shp".format(region)))
assert len(f) == 1
return f[0]

Expand Down

0 comments on commit 8ab12c5

Please sign in to comment.