[yt-users] ARTIO and find_field_value_at_point

Douglas Harvey Rudd drudd at uchicago.edu
Wed May 21 14:48:08 PDT 2014


Hi Nathan,

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?

Douglas Rudd
Scientific Computing Consultant
Research Computing Center
drudd at uchicago.edu<mailto:drudd at uchicago.edu>



On May 21, 2014, at 2:05 PM, Nathan Goldbaum <nathan12343 at gmail.com<mailto:nathan12343 at gmail.com>> wrote:

Hi Alexander,

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.

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.

See this issue: https://bitbucket.org/yt_analysis/yt/issue/499/missing-hierarchy-functions

Cheers,

Nathan



On Wed, May 21, 2014 at 11:42 AM, Alexander A. Kaurov <akaurov at gmail.com<mailto:akaurov at gmail.com>> wrote:
Hi all,

I'm trying to access field value in a given point in ARTIO file (sample data file: sizmbhloz-clref04SNth-rs9_a0.9011
​). ​The function '
​
find_field_value_at_point
​' seems to be not working. May be I'm using it wrong?​

​Here is the code:

from yt.mods import *
​
pf=load('test-data/sizmbhloz-clref04SNth-rs9_a0.9011/sizmbhloz-clref04SNth-rs9_a0.9011.art')
pf.h.
​​
find_field_value_at_point(('artio', 'HVAR_GAS_DENSITY'),[0.1,0.1,0.1])

​And the error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  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__
    raise AttributeError
AttributeError

​Thanks!

Sasha​


_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org<mailto:yt-users at lists.spacepope.org>
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org


_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org<mailto:yt-users at lists.spacepope.org>
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140521/6b9dfc05/attachment.htm>


More information about the yt-users mailing list