title: Why can't I suppress numpy warnings
body: <p>I really want to avoid these annoying numpy warnings since I have to deal with a lot of <code>NaNs</code>. I know this is usually done with seterr, but for some reason here it does not work:</p>
  <pre><code>import numpy as np
  data = np.random.random(100000).reshape(10, 100, 100) * np.nan
  np.seterr(all=&quot;ignore&quot;)
  np.nanmedian(data, axis=[1, 2])
  </code></pre>
  <p>It gives me a runtime warning even though I set numpy to ignore all errors...any help?</p>
  <p>Edit (this is the warning that is recieved):</p>
  <blockquote>
  <p>/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-p‌​ackages/numpy/lib/nanfunctions.py:612: RuntimeWarning: All-NaN slice encountered warnings.warn(&quot;All-NaN slice encountered&quot;, RuntimeWarning)</p>
  </blockquote>