Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarshak committed Jun 19, 2024
1 parent 6845c99 commit e460cc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tile_mate/stitcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ def toggle_hansen_url(url: str) -> str:

df_tiles.url = df_tiles.url.map(toggle_hansen_url)
if tile_key == 'glad_change':

def update_glad_change_url(url: str) -> str:
url_updated = url[:76] + '2000-2020change' + url[80:]
return url_updated

df_tiles.url = df_tiles.url.map(update_glad_change_url)

if year is not None:
Expand All @@ -82,9 +84,11 @@ def update_hansen_landsat_mosaic_url_p(url):

df_tiles.url = df_tiles.url.map(update_hansen_landsat_mosaic_url_p)
if tile_key == 'glad_landcover':

def update_glad_landcover_url(url: str, year: int = year) -> str:
url_updated = url[:76] + f'{year}' + url[80:]
return url_updated

df_tiles.url = df_tiles.url.map(update_glad_landcover_url)

if tile_key == 'cop_100_lulc_discrete':
Expand Down

0 comments on commit e460cc6

Please sign in to comment.