title: Numpy ValueError: setting an array element with a sequence. This message may appear without the existing of a sequence?
body: <p>Why do I get this error message? ValueError: setting an array element with a sequence. Thank you</p>
  
  <pre><code>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 xrange(N):
      kOUT[i]=func(TempLake[i],Z)
  </code></pre>