<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">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">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">data.id</a>" is the grid ID and "data._id_offset" is (as far as I can see) always 1.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 class="HOEnZb"><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>_______________________________________________<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></div>