[Yt-dev] not_in_all
Matthew Turk
matthewturk at gmail.com
Mon Jun 20 19:58:18 PDT 2011
Hi Dave,
Does it show up in the list of detected fields when debug mode is on?
-Matt
On Mon, Jun 20, 2011 at 7:53 PM, david collins <antpuncher at gmail.com> wrote:
> Hi--
>
> I have (a probably stupid) problem. I have a field that I'm writing
> out to some grids. The field is called 'AvgElec0', and only exists on
> level>0 grids (non-root-grids). I've defined this field
>
> def _AEx(field,data):
> return data['AvgElec0'][:,:-1,:-1]
> add_field('AEx',function=_AEx,validators=[ValidateSpatial(0)],take_log=False,not_in_all=True)
>
> (the slice is for the centering of the field). When I do something
> like pf.h.grids[1]['AEx'] I get a key error, "AvgElec0," even though
> double checking the field is in fact in that grid. If I change the
> code so it's written on all levels, the same pf.h.grids[1]['AEx']
> works fine, as one would expect. Has the not_in_all behavior changed?
> Might I be doing something stupid?
>
> Thanks,
> d.
>
>
> --
> Sent from my computer.
> _______________________________________________
> Yt-dev mailing list
> Yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
More information about the yt-dev
mailing list