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
062dfede
Commit
062dfede
authored
Oct 30, 2020
by
Daniel Scheffler
Browse files
Fixed issue
#43
(AttributeError in case COREG_LOCAL.tieP_filter_level = 0).
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
9d2371be
Pipeline
#15128
passed with stage
in 2 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
arosics/Tie_Point_Grid.py
View file @
062dfede
...
...
@@ -420,6 +420,7 @@ class Tie_Point_Grid(object):
TPR
=
Tie_Point_Refiner
(
GDF
[
GDF
.
ABS_SHIFT
!=
self
.
outFillVal
],
**
self
.
outlDetect_settings
)
GDF_filt
,
new_columns
=
TPR
.
run_filtering
(
level
=
self
.
tieP_filter_level
)
GDF
=
GDF
.
merge
(
GDF_filt
[[
'POINT_ID'
]
+
new_columns
],
on
=
'POINT_ID'
,
how
=
"outer"
)
GDF
=
GDF
.
replace
([
np
.
nan
,
None
],
int
(
self
.
outFillVal
))
# fillna fails with geopandas==0.6.0
self
.
CoRegPoints_table
=
GDF
...
...
@@ -428,7 +429,8 @@ class Tie_Point_Grid(object):
if
GDF
.
empty
:
warnings
.
warn
(
'No valid GCPs could by identified.'
)
else
:
print
(
"%d valid tie points remain after filtering."
%
len
(
GDF
[
GDF
.
OUTLIER
.
__eq__
(
False
)]))
if
self
.
tieP_filter_level
>
0
:
print
(
"%d valid tie points remain after filtering."
%
len
(
GDF
[
GDF
.
OUTLIER
.
__eq__
(
False
)]))
return
self
.
CoRegPoints_table
...
...
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