[yt-svn] commit/yt: bwkeller: Merged in ngoldbaum/yt (pull request #1779)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Oct 5 11:55:30 PDT 2015
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/62d32295a021/
Changeset: 62d32295a021
Branch: yt
User: bwkeller
Date: 2015-10-05 18:55:15+00:00
Summary: Merged in ngoldbaum/yt (pull request #1779)
Fix casting issues for 1D and 2D Enzo simulations
Affected #: 1 file
diff -r f570cf80c1820a672569bac1ac5fda94e2dba855 -r 62d32295a0219e9859c64f1a8c6d0ff15a2bc385 yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -636,7 +636,7 @@
def _fill_arrays(self, ei, si, LE, RE, npart, nap):
self.grid_dimensions[:,:1] = ei
- self.grid_dimensions[:,:1] -= np.array(si, self.float_type)
+ self.grid_dimensions[:,:1] -= np.array(si, dtype='i4')
self.grid_dimensions += 1
self.grid_left_edge[:,:1] = LE
self.grid_right_edge[:,:1] = RE
@@ -651,7 +651,7 @@
def _fill_arrays(self, ei, si, LE, RE, npart, nap):
self.grid_dimensions[:,:2] = ei
- self.grid_dimensions[:,:2] -= np.array(si, self.float_type)
+ self.grid_dimensions[:,:2] -= np.array(si, dtype='i4')
self.grid_dimensions += 1
self.grid_left_edge[:,:2] = LE
self.grid_right_edge[:,:2] = 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