Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ExtractReferenceSamplesFromSITS
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
Package 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAUVEL Mathieu
ExtractReferenceSamplesFromSITS
Commits
0a2c670a
Commit
0a2c670a
authored
1 month ago
by
Mathieu FAUVEL
Browse files
Options
Downloads
Patches
Plain Diff
FIX: precommit
parent
efe2f632
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
.pre-commit-config.yaml
+1
-0
1 addition, 0 deletions
.pre-commit-config.yaml
bin/download_tiles.py
+7
-5
7 additions, 5 deletions
bin/download_tiles.py
with
8 additions
and
5 deletions
.pre-commit-config.yaml
+
1
−
0
View file @
0a2c670a
...
...
@@ -21,6 +21,7 @@ repos:
rev
:
6.0.0
hooks
:
-
id
:
isort
args
:
[
"
--profile"
,
"
black"
]
-
repo
:
https://github.com/psf/black-pre-commit-mirror
rev
:
25.1.0
hooks
:
...
...
This diff is collapsed.
Click to expand it.
bin/download_tiles.py
+
7
−
5
View file @
0a2c670a
"""
Script used to download tiles from S3 TREX storage
"""
"""
Script used to download tiles from S3 TREX storage
"""
import
argparse
import
logging
import
os
from
pathlib
import
Path
from
datalakeutils
import
s3utils
# type: ignore
from
joblib
import
Parallel
,
delayed
from
datalakeutils
import
s3utils
# type: ignore
from
extractreferencesamplesfromsits.download_utils
import
(
download_tile_from_s3
,
compute_distance_mask
,
filter_duplicate
)
from
extractreferencesamplesfromsits.download_utils
import
(
# type: ignore
compute_distance_mask
,
download_tile_from_s3
,
filter_duplicate
,
)
def
get_parser
()
->
argparse
.
ArgumentParser
:
...
...
@@ -168,5 +172,3 @@ if __name__ == "__main__":
for
product_path
in
downloaded_product_path
)
logging
.
info
(
"
Compute distance mask for all products - Done
"
)
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