title: Reshape Numpy Array: 'list' object is not callable
body: <p>I have a method, <code>get_input_representation</code> that returns a numpy array</p>
  
  <pre><code>np.array = input_stack + input_buffer 
  
  
  return np.array
  </code></pre>
  
  <p>In another a different part of the program, I call the above method, save its return value and reshape it. </p>
  
  <pre><code>state_rep = self.extractor.get_input_representation(words, pos, state)
  reshaped_state = np.array(state_rep).reshape(-1,6)
  </code></pre>
  
  <p>However, I get:</p>
  
  <blockquote>
    <p>reshaped_state = np.array(state_rep).reshape(-1,6) TypeError: 'list'
    object is not callable</p>
  </blockquote>
  
  <p>I have also tried:</p>
  
  <pre><code> reshaped_state = np.array(self.extractor.get_input_representation(words, pos, state)).reshape(-1,6)
  </code></pre>
  
  <p>But I get the same list object is not callable. Where is the error in my code and how can I go about fixing it? </p>