Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Sen2Chain
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
ESPACE-DEV
Sen2Chain
Commits
35545bb1
Commit
35545bb1
authored
2 years ago
by
pascal.mouquet_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
changed setPermissions function name to sen_permissions
parent
16a3e2f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sen2chain/products.py
+7
-4
7 additions, 4 deletions
sen2chain/products.py
with
7 additions
and
4 deletions
sen2chain/products.py
+
7
−
4
View file @
35545bb1
...
...
@@ -15,7 +15,7 @@ from pathlib import Path
from
typing
import
List
,
Tuple
,
Optional
,
Union
from
packaging
import
version
from
.utils
import
grouper
,
set
P
ermissions
,
get_Sen2Cor_version
,
get_latest_s2c_version_path
from
.utils
import
grouper
,
set
_p
ermissions
,
get_Sen2Cor_version
,
get_latest_s2c_version_path
from
.config
import
Config
,
SHARED_DATA
from
.xmlparser
import
MetadataParser
,
Sen2ChainMetadataParser
from
.sen2cor
import
process_sen2cor
...
...
@@ -226,7 +226,7 @@ class L1cProduct(Product):
if
self
.
_library_product
:
l2a_prod
.
archive
()
l2a_prod
=
L2aProduct
(
l2a_identifier
)
l2a_prod
.
set
P
ermissions
()
l2a_prod
.
set
_p
ermissions
()
l2a_prod
.
update_md
(
sen2cor_version
=
get_Sen2Cor_version
(
s2c_path
))
return
self
...
...
@@ -780,8 +780,11 @@ class L2aProduct(Product):
return
self
def
setPermissions
(
self
):
setPermissions
(
self
.
path
)
def
set_permissions
(
self
):
try
:
set_permissions
(
self
.
path
)
except
:
logger
.
info
(
"
Cannot set permissions to: {}
"
.
format
(
self
.
identifier
))
# def has_indice(self, indice):
# """
...
...
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