<div dir="ltr">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?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 4, 2015 at 3:34 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi JOhn,<br>
<br>
Looks like the Ray object doesn't support quantities (I didn't know<br>
this, not sure why it's the case, but it's probably my fault).  You<br>
can avoid this by specifying bounds in create_profile.<br>
<br>
-Matt<br>
<div><div class="h5"><br>
On Thu, Jun 4, 2015 at 7:30 AM, John Regan <<a href="mailto:johnanthonyregan@gmail.com">johnanthonyregan@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> I can't seem to figure out how to create 1D profiles anymore!<br>
><br>
> I created a ray object and I'd like to profile it. I used BinnedProfile1D in<br>
> the past but that seems to be deprecated now and ProfilePlot is throwing<br>
> errors at me.<br>
><br>
> I have a simple script here that creates a ray and tries to 1D profile it<br>
> <a href="http://paste.yt-project.org/show/5591/" target="_blank">http://paste.yt-project.org/show/5591/</a><br>
><br>
> It spits this error at me<br>
><br>
> Traceback (most recent call last):<br>
>   File "H2Rates.py", line 86, in <module><br>
>     plot = yt.ProfilePlot(my_ray, "density", ["temperature"])<br>
>   File<br>
> "/homeappl/home/regan/appl_taito/YT/3.1/yt-x86_64/src/yt-hg/yt/visualization/profile_plotter.py",<br>
> line 217, in __init__<br>
>     logs=logs)]<br>
>   File<br>
> "/homeappl/home/regan/appl_taito/YT/3.1/yt-x86_64/src/yt-hg/yt/data_objects/profiles.py",<br>
> line 1478, in create_profile<br>
>     for f, l in zip(bin_fields, logs)]<br>
> AttributeError: 'YTRay' object has no attribute 'quantities'<br>
><br>
> Cheers,<br>
> John<br>
><br>
</div></div>> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br></div>