[yt-svn] commit/yt: chummels: Merged in ngoldbaum/yt (pull request #1697)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Aug 13 09:31:32 PDT 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/603eab147248/
Changeset:   603eab147248
Branch:      yt
User:        chummels
Date:        2015-08-13 16:31:19+00:00
Summary:     Merged in ngoldbaum/yt (pull request #1697)

Cast enzo grid start index to int arrays to avoid errors in newer numpys
Affected #:  1 file

diff -r 0be6b1dfd994759358b1d5f25694bf6d0d11e890 -r 603eab147248f1a165778c76208906201eb7baae yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -338,7 +338,7 @@
 
     def _fill_arrays(self, ei, si, LE, RE, npart, nap):
         self.grid_dimensions.flat[:] = ei
-        self.grid_dimensions -= np.array(si, self.float_type)
+        self.grid_dimensions -= np.array(si, dtype='i4')
         self.grid_dimensions += 1
         self.grid_left_edge.flat[:] = LE
         self.grid_right_edge.flat[:] = RE

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