[Yt-svn] commit/yt: MatthewTurk: Ensuring the quadtree has been passed the correct dtype of domain dimensions.

Bitbucket commits-noreply at bitbucket.org
Mon Jun 13 12:21:45 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/e0a544ee779c/
changeset:   e0a544ee779c
branch:      yt
user:        MatthewTurk
date:        2011-06-13 21:21:28
summary:     Ensuring the quadtree has been passed the correct dtype of domain dimensions.
Thanks to Jorge Poco for the pointer.
affected #:  1 file (15 bytes)

--- a/yt/data_objects/data_containers.py	Mon Jun 13 10:53:12 2011 -0400
+++ b/yt/data_objects/data_containers.py	Mon Jun 13 12:21:28 2011 -0700
@@ -1536,7 +1536,7 @@
     def _get_tree(self, nvals):
         xd = self.pf.domain_dimensions[x_dict[self.axis]]
         yd = self.pf.domain_dimensions[y_dict[self.axis]]
-        return QuadTree(na.array([xd,yd]), nvals)
+        return QuadTree(na.array([xd,yd], dtype='int64'), nvals)
 
     def _get_dls(self, grid, fields):
         # Place holder for a time when maybe we will not be doing just

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list