[yt-users] Ray Profiling

Matthew Turk matthewturk at gmail.com
Thu Jun 4 05:34:45 PDT 2015


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
>



More information about the yt-users mailing list