Z = np.array([1.0, 1.0, 1.0, 1.0])

def func(TempLake, Z):
    A = TempLake
B = Z
return A * B
Nlayers = Z.size
N = 3
TempLake = np.zeros((N + 1, Nlayers))
kOUT = np.zeros(N + 1)
for i in range(N):
    kOUT[i] = func(TempLake[i], Z)
Numpy ValueError: setting an array element with a sequence. This message may appear without the existing of a sequence?