Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pyotb
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Nicolas Narçon
pyotb
Merge requests
!86
Extended filenames as dict
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Extended filenames as dict
102-pythonic_ext_fname
into
develop
Overview
31
Commits
23
Pipelines
22
Changes
1
Merged
Rémi Cresson
requested to merge
102-pythonic_ext_fname
into
develop
1 year ago
Overview
12
Commits
23
Pipelines
22
Changes
1
Expand
Closes
#102 (closed)
0
0
Merge request reports
Viewing commit
68e7fdb7
Prev
Next
Show latest version
1 file
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
68e7fdb7
Apply 1 suggestion(s) to 1 file(s)
· 68e7fdb7
Vincent Delbar
authored
1 year ago
pyotb/core.py
+
4
−
4
Options
@@ -783,16 +783,16 @@ class App(OTBObject):
splits
=
[
pair
.
split
(
"
=
"
)
for
pair
in
ext_str
.
split
(
"
&
"
)]
return
dict
(
split
for
split
in
splits
if
len
(
split
)
==
2
)
gen_ext_fname
=
_str2dict
(
ext_fname
)
\
if
isinstance
(
ext_fname
,
str
)
else
ext_fname
if
isinstance
(
ext_fname
,
str
):
ext_fname
=
_str2dict
(
ext_fname
)
logger
.
debug
(
"
%s: extended filename for all outputs:
"
,
self
.
name
)
for
key
,
ext
in
gen_
ext_fname
.
items
():
for
key
,
ext
in
ext_fname
.
items
():
logger
.
debug
(
"
%s: %s
"
,
key
,
ext
)
for
key
,
filepath
in
kwargs
.
items
():
if
self
.
_out_param_types
[
key
]
==
otb
.
ParameterType_OutputImage
:
new_ext_fname
=
gen_
ext_fname
.
copy
()
new_ext_fname
=
ext_fname
.
copy
()
# grab already set extended filename key/values
if
"
?&
"
in
filepath
:
Loading