<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Perfect.  I'm going to note this issue and if nobody else picks it up while I'm gone (through the weekend), I'll take a stab when I get back.
<div>
<div><br>
</div>
<div>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Douglas Rudd</div>
<div>Scientific Computing Consultant<br>
Research Computing Center<br>
</div>
<div><a href="mailto:drudd@uchicago.edu">drudd@uchicago.edu</a></div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
<div>
<div>On May 21, 2014, at 5:08 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">This issue summarizes the state of things: <a href="https://bitbucket.org/yt_analysis/yt/issue/499/missing-hierarchy-functions">https://bitbucket.org/yt_analysis/yt/issue/499/missing-hierarchy-functions</a>
<div><br>
</div>
<div>I think find_field_value_at_point was the only one we wanted to keep.</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, May 21, 2014 at 3:07 PM, Douglas Harvey Rudd <span dir="ltr">
<<a href="mailto:drudd@uchicago.edu" target="_blank">drudd@uchicago.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Any possibility of a list of such unimplemented functions somewhere?  I'm happy to implement a few things when I find some free time, but I'd need to know what things are needed.
<div>
<div class=""><br>
<div>
<div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
<div>Douglas Rudd</div>
<div>Scientific Computing Consultant<br>
Research Computing Center<br>
</div>
<div><a href="mailto:drudd@uchicago.edu" target="_blank">drudd@uchicago.edu</a></div>
</div>
<br>
<br>
</div>
<br>
</div>
<div>
<div>
<div class="h5">
<div>On May 21, 2014, at 5:01 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>> wrote:</div>
<br>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">The code is still there, but it is not hooked up to anything.  In particular the grid hierarchy object no longer inherits from the ObjectFindingMixin.
<div><br>
</div>
<div>I think It should be possible to implement a generic version of find_field_value_at_point that uses the chunking system.  If that's not true, I think different Index subclass (i.e. the GridIndex - which used to be the GridHierarchy - the OctIndex, etc.)
 should implement it and then delegate to a method that is attached to the `Dataset` class.  For example, the find_min and find_max methods which used to be defined using ObjectFindingMixin are now implemented in a chunk-aware method using derived quantities.</div>
<div><br>
</div>
<div>I think this is totally doable, it's just that no one has actually sat down and done it yet.  It would be nice if we could get find_field_value_at_point implemented before the release of yt 3.0 since it's a useful bit of functionality.</div>
<div><br>
</div>
<div>-Nathan</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, May 21, 2014 at 2:48 PM, Douglas Harvey Rudd <span dir="ltr">
<<a href="mailto:drudd@uchicago.edu" target="_blank">drudd@uchicago.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi Nathan,
<div><br>
</div>
<div>When you say it's not functional, is it an issue of find_field_value_at_point not being implemented for Oct (or ART oct) geometry?</div>
<div><br>
<div>
<div style="font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div>Douglas Rudd</div>
<div>Scientific Computing Consultant<br>
Research Computing Center<br>
</div>
<div><a href="mailto:drudd@uchicago.edu" target="_blank">drudd@uchicago.edu</a></div>
</div>
<br>
<br>
</div>
<br>
<div>
<div>
<div>
<div>On May 21, 2014, at 2:05 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>> wrote:</div>
<br>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">Hi Alexander,
<div><br>
</div>
<div>You're right, that functionality is currently not functional.  The error message could certainly be improved - but basically it is trying to find the attribute find_field_value_at_point attached to the `Dataset` object and is not successful.  Also, it's
 worth noting that `pf.h` is the same thing as just `pf` in the current version of yt-3.0.  `pf.h` exists only for compatibility with legacy scripts and should be avoided in new scripts.</div>
<div><br>
</div>
<div>In yt 2.x, this functionality was provided via the ObjectFindingMixin class, which the GridHierarchy inherited from. Since the algorithm implemented by the find_field_value_at_point only worked for grid datasets, it has been disabled in yt-3.0. I think
 the plan is to reimplement it using the new chunking system but no one has done so yet.</div>
<div><br>
</div>
<div>See this issue: <a href="https://bitbucket.org/yt_analysis/yt/issue/499/missing-hierarchy-functions" target="_blank">https://bitbucket.org/yt_analysis/yt/issue/499/missing-hierarchy-functions</a></div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Nathan</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, May 21, 2014 at 11:42 AM, Alexander A. Kaurov <span dir="ltr">
<<a href="mailto:akaurov@gmail.com" target="_blank">akaurov@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 all,<br>
<br>
I'm trying to access field value in a given point in ARTIO file (sample data file: sizmbhloz-clref04SNth-rs9_a0.9011
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">
​). ​The function '</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">
​</div>
find_field_value_at_point
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">
​' seems to be not working. May be I'm using it wrong?​</div>
<div><font face="arial, helvetica, sans-serif"><br>
</font>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​Here is the code:</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
</div>
from yt.mods import *
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">
​</div>
</div>
<div><font face="arial, helvetica, sans-serif">pf=load('test-data/sizmbhloz-clref04SNth-rs9_a0.9011/sizmbhloz-clref04SNth-rs9_a0.9011.art')</font><br>
pf.h.
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">
​​</div>
find_field_value_at_point(('artio', 'HVAR_GAS_DENSITY'),[0.1,0.1,0.1])<br>
<br>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​And the error:</div>
<br>
<div>Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
  File "/lustre/kaurov/anaconda/lib/python2.7/site-packages/yt-3.0dev-py2.7-linux-x86_64.egg/yt/data_objects/static_output.py", line 84, in __getattr__<br>
    raise AttributeError<br>
AttributeError</div>
<div><br>
</div>
<div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​Thanks!</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Sasha​</div>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
<br>
_______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>