Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
209
Issues
209
List
Boards
Labels
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
6c321358
Commit
6c321358
authored
Mar 06, 2019
by
Victor Poughon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: fix typo in py error message
parent
b154b9b4
Pipeline
#364
passed with stage
in 28 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Modules/Wrappers/SWIG/src/otbApplication.i
Modules/Wrappers/SWIG/src/otbApplication.i
+3
-3
No files found.
Modules/Wrappers/SWIG/src/otbApplication.i
View file @
6c321358
...
...
@@ -831,9 +831,9 @@ class ApplicationProxy(object):
array
=
self
.
NumpyExporterMap
[
pixT
](
self
,
paramKey
)
if
array
.
shape
[
2
]
>
1
:
raise
ValueError
(
"array.shape[2] > 1
\n
"
"Output image from application has more than 1 band
\n
"
"GetImage
From
NumpyArray only returns the first band, which will result in a loss of data.
\n
"
"In this case you must use GetVectorImage
FromNumpyArray which is capable of
return a 3 dimension image.
\n
"
)
"Output image from application has more than 1 band
.
\n
"
"GetImage
As
NumpyArray only returns the first band, which will result in a loss of data.
\n
"
"In this case you must use GetVectorImage
AsNumpyArray which can
return a 3 dimension image.
\n
"
)
array
=
array
[
:
,
:
,
0
]
return
array
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment