Skip to content

Commit fc13d9e

Browse files
committed
convert paths to strings for Raster class
1 parent 55bfdfb commit fc13d9e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pipelines/rscontext_to_athena/rscontext_to_athena.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ def scrape_rscontext_project(s3, rs_api: RiverscapesAPI, project: RiverscapesPro
115115
metrics = {}
116116

117117
huc10_json_path = huc_dir / f'huc10_{project.huc}.json'
118-
dem_raster = Raster(dem_tif_path)
118+
dem_raster = Raster(str(dem_tif_path))
119119
dem_bins = dem_raster.bin_raster(100)
120-
veg_raster = Raster(veg_tif_path)
120+
veg_raster = Raster(str(veg_tif_path))
121121
veg_bins = veg_raster.bin_raster_categorical()
122122
if 'rs_context' not in metrics:
123123
metrics['rs_context'] = {}

0 commit comments

Comments
 (0)