Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
iamap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AMAP
iamap
Commits
fc3a8090
Commit
fc3a8090
authored
1 week ago
by
paul.tresson_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/jobs.yml
+1
-1
1 addition, 1 deletion
.github/workflows/jobs.yml
utils/geo.py
+19
-8
19 additions, 8 deletions
utils/geo.py
with
20 additions
and
9 deletions
.github/workflows/jobs.yml
+
1
−
1
View file @
fc3a8090
...
...
@@ -3,7 +3,7 @@ name: CI/CD Pipeline
on
:
push
:
branches
:
-
main
-
main
, dev
pull_request
:
branches
:
-
main, dev
...
...
This diff is collapsed.
Click to expand it.
utils/geo.py
+
19
−
8
View file @
fc3a8090
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment