title: python NumPy Value Error Issue
body: <p>I am new to python and am unsure as to how to fix the following error using NumPy:</p>
  
  <pre><code>if (energy &lt; min_energy):
      min_energy = energy;
      min_pos_current = c;
      min_pos_previous = p;
  
  if (energy &lt; min_energy):
  ValueError: The truth value of an array with more than one element is 
  ambiguous. Use a.any() or a.all()
  </code></pre>
  
  <p>Can someone assist me this issue?</p>