<div dir="ltr">Hi Carla,<div><br></div><div>First, apologies for the frustration. You've run across a place in the docs that is out of date and unfortunately contains incorrect information due to an API change a while ago. In the best of all possible worlds our docs would always be up-to-date. Unfortunately sometimes stuff slips through the cracks. Thanks so much for reporting the issue, which will ensure that it gets fixed for future users of the library.</div><div><br></div><div>Here is a code snippet that does what you want:</div><div><br></div><div>point = ds.point(coord)</div><div>max_amr_level = point['grid_level']</div><div><br></div><div>Coord must be either a YTArray or a 3-element iterable. If it's not a YTArray then the point is assumed to be in code units.</div><div><br></div><div>I've filed an issue here to mark that the documentation you ran into is out of date, it will be updated by the next release:</div><div><br></div><div><a href="https://github.com/yt-project/yt/issues/1455">https://github.com/yt-project/yt/issues/1455</a><br></div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 16, 2017 at 3:37 AM, Carla Bernhardt <span dir="ltr"><<a href="mailto:carla.j.bernhardt@gmail.com" target="_blank">carla.j.bernhardt@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">Hi yt-users,<div><br></div><div>I am trying to use the find_point() function as described as <a href="http://yt-project.org/doc/examining/low_level_inspection.html#finding-data-at-fixed-points" target="_blank">a low-level data inspection example here</a>. However, when I try the given example, I get this error:</div><div><div><font face="monospace, monospace">>>> gs,gi=ds.find_point((0.5, 0.5, 0.5))</font></div><div><font face="monospace, monospace">Traceback (most recent call last):</font></div><div><font face="monospace, monospace">  File "<stdin>", line 1, in <module></font></div><div><font face="monospace, monospace">AttributeError: 'EnzoDataset' object has no attribute 'find_point'</font></div></div><div><br></div><div>If this function doesn't work with an EnzoDataset, what does it work with? I am ultimately trying to find the highest AMR level at a given point.</div><div><br></div><div>Cheers,</div><div>Carla Bernhardt</div><div>PhD Student</div><div>ZAH Institut für Theoretische Astrophysik</div><div>Universität Heidelberg</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>