Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
arosics
Commits
f1d361c8
Commit
f1d361c8
authored
Jan 23, 2018
by
Daniel Scheffler
Browse files
Revised arosics_cli.py. Fixed issue
#14
.
parent
ac0841ef
Pipeline
#1793
passed with stages
in 3 minutes and 3 seconds
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
arosics/CoReg.py
View file @
f1d361c8
...
...
@@ -4,6 +4,7 @@ import os
import
time
import
warnings
from
copy
import
copy
from
typing
import
Iterable
# custom
try
:
...
...
@@ -215,8 +216,8 @@ class COREG(object):
if
data_corners_tgt
and
not
isinstance
(
data_corners_tgt
[
0
],
list
):
# group if not [[x,y],[x,y]..]
data_corners_tgt
=
[
data_corners_tgt
[
i
:
i
+
2
]
for
i
in
range
(
0
,
len
(
data_corners_tgt
),
2
)]
if
nodata
:
assert
isinstance
(
nodata
,
tup
le
)
and
len
(
nodata
)
==
2
,
\
"'nodata' must be a
tup
le with two values. Got %s with length %s."
%
(
type
(
nodata
),
len
(
nodata
))
assert
isinstance
(
nodata
,
Iterab
le
)
and
len
(
nodata
)
==
2
,
\
"'nodata' must be a
n iterab
le with two values. Got %s with length %s."
%
(
type
(
nodata
),
len
(
nodata
))
for
rspAlg
in
[
resamp_alg_deshift
,
resamp_alg_calc
]:
assert
rspAlg
in
_dict_rspAlg_rsp_Int
.
keys
(),
"'%s' is not a supported resampling algorithm."
%
rspAlg
if
resamp_alg_calc
in
[
'average'
,
5
]
and
(
v
or
not
q
):
...
...
bin/arosics_cli.py
View file @
f1d361c8
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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