<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br><div class=""><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 3, 2015 at 3:41 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">What's the output of:<div><br></div><div>for g in ds.index.grids:</div><div>    if <a href="http://g.id" target="_blank">g.id</a> == 170:</div><div>        print g.LeftEdge</div><div>        print g.RightEdge</div><div>        print g.level</div></div></blockquote></div></div></div></div></blockquote><div><br></div><div>Shouldn't that be 169, or do I have an OB1?  The coordinates are [0,1]x[0,1]x[24/64]</div><div><div>Left = [ 0.375  0.25   0.25 ] code_length</div><div>Right = [ 0.5  0.5  0.5] code_length</div><div>g.Level = 1</div><div><br></div></div><div>So the position makes sense, but the level is wrong.</div><div><br></div><div>Plotting the grid indices, however, shows that the left-most 169 is vastly wrong, the grid id should be more like 20:</div><div><a href="http://imgur.com/g0ciWkc">http://imgur.com/g0ciWkc</a><br></div><div><br></div><div>Thanks!  I'll focus on using the grid_index field to track this down.</div><div><br></div><div>For what its worth, I"m trying to track down some oddly missing grids.  This is a slice of a sphere, but clearly some grids are not getting either filled or plotted:</div><div><br></div><div><a href="http://imgur.com/4lLToLk">http://imgur.com/4lLToLk</a><br></div><div><br></div><div>If that's a familiar glitch, let me know, though I don't think its a yt glitch.</div><div><br></div><div><br></div><div>d.</div><div><br></div><div><br></div><div><br></div><div><br class="">On Thu, Sep 3, 2015 at 4:45 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">You could also make a SlicePlot of the grid_indices field and compare with the colorbar to see if the ids labels are wrong in the grid callback.</div></blockquote></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Also what are the slice coordinates and widths of the two SlicePlots in your email?</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 3, 2015 at 3:32 PM, David Collins <span dir="ltr"><<a href="mailto:dcollins4096@gmail.com" target="_blank">dcollins4096@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">This is about what I expected.  So why and or how do I have these two slices with grid ids that are the same, but clearly not the same grid? The below shows two slices from the same simulation, but notice that number 169 is a level 2 grid near the center in the first plot, and a level one grid near the edge in the second plot.  The grid with id =169 is a level 1 grid, but seems to have RightEdge that's consistent with the center of the center of the box.  <div><br></div><div><a href="http://imgur.com/a/mvCzW" target="_blank">http://imgur.com/a/mvCzW</a><span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><br></div><div>d.</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 3, 2015 at 4:14 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Thu, Sep 3, 2015 at 3:12 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">The code for that is here:<div><br><div><a href="https://bitbucket.org/yt_analysis/yt/src/a7c319c1f87d4b749aa6feb737da504e43a7defb/yt/visualization/plot_modifications.py?at=yt#plot_modifications.py-628" target="_blank">https://bitbucket.org/yt_analysis/yt/src/a7c319c1f87d4b749aa6feb737da504e43a7defb/yt/visualization/plot_modifications.py?at=yt#plot_modifications.py-628</a><br></div></div><div><br></div><div>It's coming from the grid_indicies field, which is defined here:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/src/a7c319c1f87d4b749aa6feb737da504e43a7defb/yt/fields/geometric_fields.py?at=yt#geometric_fields.py-61" target="_blank">https://bitbucket.org/yt_analysis/yt/src/a7c319c1f87d4b749aa6feb737da504e43a7defb/yt/fields/geometric_fields.py?at=yt#geometric_fields.py-61</a><br></div><div><br></div><div>Due the validators used in that field definition "data" is an AMRGridPatch instance, which is defined in yt/data_objects/grid_patch.py. "<a href="http://data.id" target="_blank">data.id</a>" is the grid ID and "data._id_offset" is (as far as I can see) always 1.</div></div></blockquote><div><br></div></span><div>Should only be 1 for Enzo, I think.  The other patch-AMR datasets are I think all 0-indexed.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Sep 3, 2015 at 2:58 PM, David Collins <span dir="ltr"><<a href="mailto:dcollins4096@gmail.com" target="_blank">dcollins4096@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hi, Everybody--<div><br></div><div>I'm trying to sort out some funny issues with a run, and I'm using the draw_ids flag to annotate_grids.  I'm noticing that the same IDs are used in wildly different grids.  Where do the ids used for this flag come from, and how can I relate them to the grids in index.grids?</div><span><font color="#888888"><div><br></div><div>d.<br clear="all"><div><br></div>-- <br><div><div dir="ltr">-- Sent from a computer.<br></div></div>
</div></font></span></div>
<br></div></div>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto: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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto: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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></span></div><br></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto: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" rel="noreferrer" 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><div dir="ltr">-- Sent from a computer.<br></div></div>
</div>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto: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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><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" rel="noreferrer" 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 class="gmail_signature"><div dir="ltr">-- Sent from a computer.<br></div></div>
</div></div>