
Stella and Kaitlin, I take this back. I was wrong, left_edge for a covering grid does not and should not be an integer -- my apologies for the confusion. To get aorund the issue you were seeing, I've added a cast for the "levels" attribute, which I believe is the correct one to cast to int32. Again, sorry for the confusion. This showed up in regression testing a few hours ago, and I just saw the problem get flagged. -Matt On Mon, Mar 19, 2012 at 2:00 PM, Stella Offner <soffner@cfa.harvard.edu> wrote:
Hi Matt,
Thanks for your quick response. I had checked the example with my slightly older version of yt, and it worked fine, so I assume this is just the result of a new change in yt. We'll let you know if for some reason this doesn't fix the problem.
Thanks, Stella
Matthew Turk wrote:
Hi Kaitlin,
Looking over the docs, yes -- that example is incorrect and I have just updated it ( https://bitbucket.org/yt_analysis/cookbook/changeset/ec107f1da0b0 ). The covering grid is based on integer indices, and you specify the (relative-to-level) integer starting index and the extent in indices in that level. Thanks for pointing that out ...
-Matt
On Mon, Mar 19, 2012 at 1:47 PM, Kaitlin Kratter <kaitlin.kratter@gmail.com> wrote:
Hi Matt,
Just to be clear, the left_edge arguments need to be int32s? I'm confused because the example had floats for the left and right edge values...
By the way, the undergrad just left so it will take a little time to verify in any case.
Best, Kaitlin
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org