<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 2, 2014 at 7:06 PM, Benjamin Root <span dir="ltr"><<a href="mailto:ben.root@ou.edu" target="_blank">ben.root@ou.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p dir="ltr">Out[1] has an integer divided by an integer, and you can't represent nan as an integer. Perhaps something weird was happening with type promotion between versions?</p></blockquote><div><br></div><div>Also note that in python3 the '/' operator does float rather than integer division.<br><br><span style="font-family:courier new,monospace">>>> np.array(0) / np.array(0)<br>__main__:1: RuntimeWarning: invalid value encountered in true_divide<br>nan</span><br><br></div><div><snip><br></div><div><br></div><div>Chuck<br></div><br></div></div></div>