j: Next unread message
k: Previous unread message
j a: Jump to all threads
j l: Jump to MailingList overview
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['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['AEx'] works fine, as one would expect. Has the not_in_all behavior changed? Might I be doing something stupid?
-- Sent from my computer.