# Check to see if the data has been padded with "none's"
# Check to see if the data has been padded with "none's"
# Fill doesn't work correctly otherwise
# Fill doesn't work correctly otherwise
end=-1
end=len(values)-1
fori,(x,y)inenumerate(reversed(values)):
whileend>0:
ifxisnotNone:
x,y=values[end]
end=-1-i
ifself.missing_value_fill_truncation=="either":
break
ifxisnotNoneandyisnotNone:
break
elifself.missing_value_fill_truncation=="x":
ifxisnotNone:
break
elifself.missing_value_fill_truncation=="y":
ifyisnotNone:
break
else:
raiseValueError("Invalid value ({}) for config key 'missing_value_fill_truncation'; Use 'x', 'y' or 'either'".format(self.missing_value_fill_truncation))