[yt-users] Ray Profiling

John Regan johnanthonyregan at gmail.com
Thu Jun 4 05:52:32 PDT 2015


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150604/3f59accb/attachment.html>


More information about the yt-users mailing list