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
c3858f9e
Commit
c3858f9e
authored
Dec 10, 2020
by
Daniel Scheffler
Browse files
Removed tests for issue 70 and 47.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
dde5acd1
Pipeline
#16698
passed with stages
in 6 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_COREG_LOCAL.py
View file @
c3858f9e
...
...
@@ -121,60 +121,6 @@ class CompleteWorkflow_INTER1_S2A_S2A(unittest.TestCase):
CRL
.
calculate_spatial_shifts
()
class
Test_Issue70
(
unittest
.
TestCase
):
def
test_coreg_local_fullArrays
(
self
):
import
dill
with
open
(
'/home/gfz-fe/scheffler/temp/coreg_issue70/kwargs_dump_assertionerror_issue_70b.dill'
,
'rb'
)
as
inF
:
kw
=
dill
.
load
(
inF
)
kw
[
'r_b4match'
]
=
1
kw
[
'q'
]
=
False
CRL
=
COREG_LOCAL
(
**
kw
)
CRL
.
calculate_spatial_shifts
()
CRL
.
correct_shifts
()
if
CRL
.
success
:
CRL
.
view_CoRegPoints
(
figsize
=
(
20
,
20
),
backgroundIm
=
'tgt'
,
hide_filtered
=
False
)
else
:
print
(
'Result not co-registered.'
)
def
test_coreg_local_bandsonly
(
self
):
import
dill
with
open
(
'/home/gfz-fe/scheffler/temp/coreg_issue70/kwargs_dump_assertionerror_issue_70.dill'
,
'rb'
)
as
inF
:
kw
=
dill
.
load
(
inF
)
kw
[
'r_b4match'
]
=
1
kw
[
'q'
]
=
False
CRL
=
COREG_LOCAL
(
**
kw
)
CRL
.
calculate_spatial_shifts
()
CRL
.
correct_shifts
()
if
CRL
.
success
:
CRL
.
view_CoRegPoints
(
figsize
=
(
20
,
20
),
backgroundIm
=
'tgt'
,
hide_filtered
=
False
)
else
:
print
(
'Result not co-registered.'
)
class
Test_Issue47
(
unittest
.
TestCase
):
def
test_coreg_local
(
self
):
import
dill
with
open
(
'/home/gfz-fe/scheffler/temp/coreg_issue47/kwargs_dump_assertionerror_issue_47.dill'
,
'rb'
)
as
inF
:
kw
=
dill
.
load
(
inF
)
kw
[
'r_b4match'
]
=
1
kw
[
'q'
]
=
False
kw
[
'CPUs'
]
=
32
CRL
=
COREG_LOCAL
(
**
kw
)
CRL
.
calculate_spatial_shifts
()
CRL
.
correct_shifts
()
if
not
CRL
.
success
:
print
(
'Result not co-registered.'
)
CRL
.
view_CoRegPoints
(
backgroundIm
=
'tgt'
,
hide_filtered
=
False
)
# CRL.view_CoRegPoints(figsize=(20, 20), backgroundIm='tgt', hide_filtered=False)
if
__name__
==
'__main__'
:
import
nose2
nose2
.
main
()
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