David,
Grid collection works as any other AMR3DData container.
In reference to the __getitem__ issue, it can be challenging to debug
this sort of thing remotely without the line that causes the error and
a traceback.
-Matt
On Mon, May 9, 2011 at 10:24 AM, David Collins
Hey, Matt--
I found that if I do "lazy_reader = False" the covering grid works fine. It looks like somewhere the field string in one of the __getitem__ calls is being treated like a list.
I'm interested in using this with some derivative quantities, can I just send 'DivV' to the grid collection in your example, or will I have to let it know that it should grab ghost zones?
d.
On Mon, May 9, 2011 at 10:57 AM, Matthew Turk
wrote: Hi David,
Try a grid_collection:
gc = pf.h.grid_collection([0.5,0.5,0.5], [pf.h.grids[0]])
Note that it still requires a 'center'. Also, this object is not supposed to do any child masking, so if you find that it does, let me know.
-Matt
On Mon, May 9, 2011 at 9:43 AM, david collins
wrote: Hi there--
I'd like to add a profile object using only the root grid. I typically do something like this:
pc.add_profile_object(region,fields, weight=weight)
Is there a way to restrict this to only root grid tiles? I've tried using a covering grid, but that's throwing some key error (that I'm looking into presently, I'll have more info if/as I sort it out)
Thanks, d.
-- Sent from my computer. _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- Sent from my computer. _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org