[Yt-svn] yt-commit r886 - branches/yt-generalization/yt/lagos

joishi at wrangler.dreamhost.com joishi at wrangler.dreamhost.com
Wed Nov 5 13:48:04 PST 2008


Author: joishi
Date: Wed Nov  5 13:48:04 2008
New Revision: 886
URL: http://yt.spacepope.org/changeset/886

Log:
* apparent bug. casting grid dx to int instead of float. wonder what i was thinking??


Modified:
   branches/yt-generalization/yt/lagos/HierarchyType.py

Modified: branches/yt-generalization/yt/lagos/HierarchyType.py
==============================================================================
--- branches/yt-generalization/yt/lagos/HierarchyType.py	(original)
+++ branches/yt-generalization/yt/lagos/HierarchyType.py	Wed Nov  5 13:48:04 2008
@@ -905,7 +905,7 @@
         counter += 1
         self.dx = na.zeros((self.n_levels,3))
         for i,line in enumerate(self.__global_header_lines[counter:counter+self.n_levels]):
-            self.dx[i] = na.array(map(int,line.split()))
+            self.dx[i] = na.array(map(float,line.split()))
         counter += self.n_levels
         self.geometry = int(self.__global_header_lines[counter])
         if self.geometry != 0:



More information about the yt-svn mailing list