I work in a function that should look for the element with the highest value in a vector, but I get an error when compiling, the code is the following:
def getVPPXSenialXMovXFilaMaximosMinimos(self, mov_canal, fila):
line = [self.file.getVectorPorFilaPorSenial(mov_canal, fila)]
i = 0
while i < len(line):
if line[i] >= line[i+1]:
maxi = line[i]
else:
i += 1
return maxi
The error always gives me on the fifth line.