Sep-16-2017, 02:42 AM
fa is an array of floats, exact type unknown (since Python doesn't declare)
Okay, nvr mind. It turns out there are two variables and I was confusing them, one called fa and one called self.fa.
My bad.
pfa = fa fa = np.concatenate( (np.zeros(2), fa )) FAIs = np.maximum( fa - pfa, 0. )first we set pfa = fa, then we prepend 2 zeros to fa, so "fa - pfa" is trying to operate on arrays of different sizes (I think).
Error:TypeError: unsupported operand type(s) for -: 'list' and 'list'
What am I missing?Okay, nvr mind. It turns out there are two variables and I was confusing them, one called fa and one called self.fa.
My bad.