Commit a4808560 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

bugfix for previous commit

parent 7d49da60
......@@ -358,7 +358,11 @@ class Tie_Point_Grid(object):
def to_GCPList(self):
# get copy of quality grid without no data
GDF = self.CoRegPoints_table.loc[self.CoRegPoints_table.ABS_SHIFT != self.outFillVal, :].copy()
try:
GDF = self.CoRegPoints_table.loc[self.CoRegPoints_table.ABS_SHIFT != self.outFillVal, :].copy()
except AttributeError:
# self.CoRegPoints_table has no attribute 'ABS_SHIFT' because all points have been excluded
return []
if getattr(GDF,'empty'): # GDF.empty returns AttributeError
return []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment