[yt-svn] commit/yt: MatthewTurk: Adding a cast to int32 for the grid_levels array inside

Bitbucket commits-noreply at bitbucket.org
Mon Apr 9 04:11:31 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/c23cb264f04c/
changeset:   c23cb264f04c
branch:      stable
user:        MatthewTurk
date:        2012-04-09 13:11:16
summary:     Adding a cast to int32 for the grid_levels array inside
get_box_grids_below_level.
affected #:  1 file

diff -r 52d475960592c0090edd6e3ae0ba7fb9bb7d7837 -r c23cb264f04c126a36e95f5981ed92013eef70fd yt/data_objects/object_finding_mixin.py
--- a/yt/data_objects/object_finding_mixin.py
+++ b/yt/data_objects/object_finding_mixin.py
@@ -211,7 +211,7 @@
         get_box_grids_below_level(left_edge, right_edge,
                             level,
                             self.grid_left_edge, self.grid_right_edge,
-                            self.grid_levels, mask)
+                            self.grid_levels.astype("int32"), mask)
         mask = mask.astype("bool")
         return self.grids[mask], na.where(mask)

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