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
84822fe7
Commit
84822fe7
authored
Jun 18, 2021
by
Daniel Scheffler
Browse files
Removed non-operational tests.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
5419b6be
Pipeline
#24661
passed with stages
in 4 minutes and 45 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tests/test_COREG.py
View file @
84822fe7
...
...
@@ -308,78 +308,6 @@ class CompleteWorkflow_INTER1_S2A_S2A(unittest.TestCase):
CR
.
show_image_footprints
()
class
Test_Bug_SSIM_unequal_dims
(
unittest
.
TestCase
):
def
test_coreg
(
self
):
# ref = '/home/gfz-fe/scheffler/temp/coreg_bug_ssim_unequal_dims/rgb.tif'
ref
=
'/home/gfz-fe/scheffler/temp/coreg_bug_ssim_unequal_dims/rgb_BSQ.bsq'
tgt
=
'/home/gfz-fe/scheffler/temp/coreg_bug_ssim_unequal_dims/red.tif'
cr
=
COREG
(
ref
,
tgt
,
wp
=
(
392820.125995486
,
5178269.142020599
),
ws
=
(
2056
,
2056
),
progress
=
False
,
nodata
=
(
0
,
0
))
cr
.
calculate_spatial_shifts
()
def
test_coreg_local
(
self
):
from
arosics
import
COREG_LOCAL
# ref = '/home/gfz-fe/scheffler/temp/coreg_bug_ssim_unequal_dims/rgb.tif'
ref
=
'/home/gfz-fe/scheffler/temp/coreg_bug_ssim_unequal_dims/rgb_BSQ.bsq'
tgt
=
'/home/gfz-fe/scheffler/temp/coreg_bug_ssim_unequal_dims/red.tif'
kwargs
=
dict
(
grid_res
=
512
,
window_size
=
(
2056
,
2056
),
path_out
=
'/home/gfz-fe/scheffler/temp/coreg_bug_ssim_unequal_dims/output.tif'
,
projectDir
=
None
,
q
=
False
,
v
=
True
,
fmt_out
=
'GTIFF'
,
min_reliability
=
60
,
max_shift
=
128
,
max_iter
=
3
,
match_gsd
=
False
,
out_crea_options
=
[
'PHOTOMETRIC=MINISBLACK'
,
'COMPRESS=LZW'
,
'ALPHA=NO'
],
CPUs
=
1
)
# kwargs['nodata'] = (-10000, -10000)
kwargs
[
'nodata'
]
=
(
0
,
-
10000
)
CRL
=
COREG_LOCAL
(
ref
,
tgt
,
**
kwargs
)
CRL
.
correct_shifts
()
def
test_from_dump
(
self
):
import
dill
with
open
(
'/home/gfz-fe/scheffler/temp/coreg_bug_ssim_unequal_dims/dump.dill'
,
'rb'
)
as
inF
:
cr
=
dill
.
load
(
inF
)
cr
.
ref
.
nodata
=
0
cr
.
ignErr
=
False
cr
.
calculate_spatial_shifts
()
cr
.
_validate_ssim_improvement
()
class
Test_Bug_SSIM_outOfRange
(
unittest
.
TestCase
):
def
test_coreg
(
self
):
ref
=
'/home/gfz-fe/scheffler/temp/coreg_raul_alonso/reference.tif'
tgt
=
'/home/gfz-fe/scheffler/temp/coreg_raul_alonso/target.tif'
crl
=
COREG
(
ref
,
tgt
,
# window_size=(512,512),
max_shift
=
10
,
nodata
=
(
0
,
0
))
crl
.
calculate_spatial_shifts
()
crl
=
None
def
test_coreg_local
(
self
):
from
arosics
import
COREG_LOCAL
ref
=
'/home/gfz-fe/scheffler/temp/coreg_raul_alonso/reference.tif'
tgt
=
'/home/gfz-fe/scheffler/temp/coreg_raul_alonso/target.tif'
crl
=
COREG_LOCAL
(
ref
,
tgt
,
50
,
# window_size=(512,512),
max_shift
=
10
,
min_reliability
=
40
,
calc_corners
=
False
,
nodata
=
(
0
,
0
))
crl
.
calculate_spatial_shifts
()
if
__name__
==
'__main__'
:
import
nose2
nose2
.
main
()
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