<meta http-equiv="Content-Type" content="text/html; charset=utf-8">Hi Hao,<div><br></div><div>I have an open PR that should fix the issue you ran into:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/pull-requests">https://bitbucket.org/yt_analysis/yt/pull-requests</a></div>
<div><br></div>Nathan<span></span><br><div><br><br>On Tuesday, August 19, 2014, Hao Wang <<a href="mailto:hwang.phy@gmail.com">hwang.phy@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi, Michael and Nathan,<div><br><div>Thanks for your replies. </div><div><br></div><div>@Michael: I tried your solution, but it didn't solve my problem. I updated to yt 3.1-dev which included the patch you mentioned. Might be due to the difference in the data? </div>


<div><br></div><div>I just changed to yt 2.x branch which has no such problem and gives desired plots.</div></div><div><br></div><div>(And sorry I did forget to mention that my data was from Enzo simulation, and I was using yt 3.0-stable then.)</div>


<div><br></div><div>Hao</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 20, 2014 at 1:29 AM, Nathan Goldbaum <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','nathan12343@gmail.com');" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm able to reproduce this using an Enzo Sod Shock dataset I just generated.  Thanks for the report! <div>


<br></div><div>Next time you come across something like this please feel free to open an issue on the bug tracker.  It also helps if you say which simulation code you're working with and which yt version you're using.<div>




<div><br></div><div>I've opened an issue on our bug tracker about this: <a href="https://bitbucket.org/yt_analysis/yt/issue/883/1d-enzo-data-is-incorrectly-parsed" target="_blank">https://bitbucket.org/yt_analysis/yt/issue/883/1d-enzo-data-is-incorrectly-parsed</a></div>




</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Tue, Aug 19, 2014 at 1:39 AM, Hao Wang <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','hwang.phy@gmail.com');" target="_blank">hwang.phy@gmail.com</a>></span> wrote:<br>




</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi all,
<div><br></div><div>I'm trying to plot the density profile of a 1D simulation, but can't find any instruction on how to do this.</div><div><br></div><div>I tried ray=pf.h.ortho_ray(0,[ord1,ord2]) with several different ord1 and ord2, including [0.5, 0.5]; while "ray['x']" returns an array of values, "ray[FieldName]" (where FieldName can be Density, TotalEnergy, GasEnergy, etc) returns nothing but "YTArray([],dtype=float 64) (dimensionless)". </div>







<div><br></div><div>Using ortho_ray on the 2D simulation of the same problem gives correct answer. Also, the "all_data" and "sphere" object do not work for 1D (they work for 2D, too).</div><div><br></div>






<div>Thanks,</div><div><br></div><div>Hao</div></div>
<br></div></div><div>_______________________________________________<br>
yt-users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','yt-users@lists.spacepope.org');" target="_blank">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></div></blockquote></div><br></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','yt-users@lists.spacepope.org');" target="_blank">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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">WANG Hao</div>
</div>
</blockquote></div>