[yt-users] Ray Profiling

Matthew Turk matthewturk at gmail.com
Thu Jun 4 05:56:23 PDT 2015


Hi John,

That's a bit odd and makes me think things might be wrong.  Can you
recreate it in a script on an example, pastebin it, and send it to me
offlist?

On Thu, Jun 4, 2015 at 7:52 AM, John Regan <johnanthonyregan at gmail.com> wrote:
> Ah yes adding in the extrema values worked! The temperature field from the
> profile came out as all zeros (ray['temperature'] looks OK though). Is there
> something else I need to do the inputs to sort that?
>
> On Thu, Jun 4, 2015 at 3:34 PM, Matthew Turk <matthewturk at gmail.com> wrote:
>>
>> Hi JOhn,
>>
>> Looks like the Ray object doesn't support quantities (I didn't know
>> this, not sure why it's the case, but it's probably my fault).  You
>> can avoid this by specifying bounds in create_profile.
>>
>> -Matt
>>
>> On Thu, Jun 4, 2015 at 7:30 AM, John Regan <johnanthonyregan at gmail.com>
>> wrote:
>> > Hi All,
>> >
>> > I can't seem to figure out how to create 1D profiles anymore!
>> >
>> > I created a ray object and I'd like to profile it. I used
>> > BinnedProfile1D in
>> > the past but that seems to be deprecated now and ProfilePlot is throwing
>> > errors at me.
>> >
>> > I have a simple script here that creates a ray and tries to 1D profile
>> > it
>> > http://paste.yt-project.org/show/5591/
>> >
>> > It spits this error at me
>> >
>> > Traceback (most recent call last):
>> >   File "H2Rates.py", line 86, in <module>
>> >     plot = yt.ProfilePlot(my_ray, "density", ["temperature"])
>> >   File
>> >
>> > "/homeappl/home/regan/appl_taito/YT/3.1/yt-x86_64/src/yt-hg/yt/visualization/profile_plotter.py",
>> > line 217, in __init__
>> >     logs=logs)]
>> >   File
>> >
>> > "/homeappl/home/regan/appl_taito/YT/3.1/yt-x86_64/src/yt-hg/yt/data_objects/profiles.py",
>> > line 1478, in create_profile
>> >     for f, l in zip(bin_fields, logs)]
>> > AttributeError: 'YTRay' object has no attribute 'quantities'
>> >
>> > Cheers,
>> > John
>> >
>> > _______________________________________________
>> > yt-users mailing list
>> > 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
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



More information about the yt-users mailing list