def spc(start): # sum previous column
return numpy.sum(S[start:X,Y-1,0])
This sometimes return the value of X-1 so redefine S[start:X+1,Y-1,0]
returns the value asked for the first time but
then using the same formula elsewhere returns cannot add int and None
I thought this was an error
def spc(start): # sum previous column
return numpy.sum(S[start:X,Y-1,0])
This sometimes return the value of X-1 so redefine S[start:X+1,Y-1,0]
returns the value asked for the first time but
then using the same formula elsewhere returns cannot add int and None
I thought this was an error