[yt-users] ARTIO and find_field_value_at_point

Nathan Goldbaum nathan12343 at gmail.com
Wed May 21 12:05:55 PDT 2014


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>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
> 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/e3db5952/attachment.html>


More information about the yt-users mailing list