<div dir="ltr">Hi Joe,<div><br></div><div>I can reproduce the error you're seeing. Thank you for the report. I've filed an issue here:</div><div><br></div><div><a href="https://github.com/yt-project/yt/issues/1368">https://github.com/yt-project/yt/issues/1368</a><br></div><div><br></div><div>The issue is that we're directly using a ufunc and yt's unit system does not support direct ufunc operations on two arrays with different units (even if they have the same dimensions). This means that you can't do something like:</div><div><br></div><div>np.add(1*km, 1*cm)</div><div><br></div><div>However, it *is* ok to do:</div><div><br></div><div>1*km + 1*cm</div><div><br></div><div>This is a bug in yt because we should be accounting for that instead of having a user trigger a traceback.<br></div><div><br></div><div>The issue should have a straightforward fix. You can subscribe to the issue to get updates.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 4, 2017 at 9:07 AM, Joseph Tomlinson <span dir="ltr"><<a href="mailto:jmtomlinson95@gmail.com" target="_blank">jmtomlinson95@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello all,<div><br></div><div>I am running into an issue extracting the position data from a surface of some enzo data. </div><div>It gives an error about adding code_unit to cm. A minimal script to generate the error can be seen here <a href="http://paste.yt-project.org/show/7136/" target="_blank">http://paste.yt-project.<wbr>org/show/7136/</a></div><div><br></div><div>I have previously had weird results with argmax returning code_units but labeling them as cm with another dataset, although this does not happen with the public dataset.</div><div><br></div><div>Thanks,</div><div>Joe Tomlinson</div><div><br></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div>