[yt-users] draw_ids

Matthew Turk matthewturk at gmail.com
Thu Sep 3 13:14:09 PDT 2015


On Thu, Sep 3, 2015 at 3:12 PM, Nathan Goldbaum <nathan12343 at gmail.com>
wrote:

> The code for that is here:
>
>
> https://bitbucket.org/yt_analysis/yt/src/a7c319c1f87d4b749aa6feb737da504e43a7defb/yt/visualization/plot_modifications.py?at=yt#plot_modifications.py-628
>
> It's coming from the grid_indicies field, which is defined here:
>
>
> https://bitbucket.org/yt_analysis/yt/src/a7c319c1f87d4b749aa6feb737da504e43a7defb/yt/fields/geometric_fields.py?at=yt#geometric_fields.py-61
>
> Due the validators used in that field definition "data" is an AMRGridPatch
> instance, which is defined in yt/data_objects/grid_patch.py. "data.id" is
> the grid ID and "data._id_offset" is (as far as I can see) always 1.
>

Should only be 1 for Enzo, I think.  The other patch-AMR datasets are I
think all 0-indexed.


>
> -Nathan
>
> On Thu, Sep 3, 2015 at 2:58 PM, David Collins <dcollins4096 at gmail.com>
> wrote:
>
>> Hi, Everybody--
>>
>> 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?
>>
>> d.
>>
>> --
>> -- Sent from a computer.
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150903/338680c4/attachment.html>


More information about the yt-users mailing list