Skip to content
Snippets Groups Projects
Commit fc3a8090 authored by paul.tresson_ird.fr's avatar paul.tresson_ird.fr
Browse files

reset merge error handling, update GA to run on dev for now

parent db486636
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ name: CI/CD Pipeline
on:
push:
branches:
- main
- main, dev
pull_request:
branches:
- main, dev
......
......@@ -58,14 +58,25 @@ def merge_tiles(
if method == "average":
method = custom_method_avg
merge(
sources=file_handler, # list of dataset objects opened in 'r' mode
bounds=union_extent, # tuple
nodata=nodata, # float
dtype=dtype, # dtype
method=method, # strategy to combine overlapping rasters
dst_path=dst_path,
)
try:
merge(
sources=file_handler, # list of dataset objects opened in 'r' mode
bounds=union_extent, # tuple
nodata=nodata, # float
dtype=dtype, # dtype
method=method, # strategy to combine overlapping rasters
dst_path=dst_path,
)
## different rasterio versions take different keyword args
except TypeError:
merge(
datasets=file_handler, # list of dataset objects opened in 'r' mode
bounds=union_extent, # tuple
nodata=nodata, # float
dtype=dtype, # dtype
method=method, # strategy to combine overlapping rasters
dst_path=dst_path,
)
# close datasets
for ds in file_handler:
......
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