title: only length-1 arrays can be converted to Python scalars using int function
body: <p>I currently got an array in python which is an element of a dictionary and, in python console, looks like this:</p>
  
  <pre><code>TUMEC['spans'][0]
  array([0. , 0.25, 0.5, 0.75, 1.])
  </code></pre>
  
  <p>I want to pass the whole array to a function but this has to go through some simple math operation like:</p>
  
  <pre><code>int(TUMEC['spans'][0]*100)
  </code></pre>
  
  <p>but I got the error message saying:
  only length-1 arrays can be converted to Python scalars.</p>
  
  <p>So, I tried to <code>import numpy</code> and type:</p>
  
  <pre><code>int(TUMEC['spans'][0]*100)
  </code></pre>
  
  <p>but I still have the same issue.</p>
  
  <p>Does anybody know how I can bypass this issue.</p>