[Yt-svn] commit/yt: samskillman: Padding enzo dimensions for 1D datasets to fix an issue I ran into with ray objects.

Bitbucket commits-noreply at bitbucket.org
Tue Sep 20 17:06:58 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/66d0827f1e04/
changeset:   66d0827f1e04
branch:      yt
user:        samskillman
date:        2011-09-21 02:06:40
summary:     Padding enzo dimensions for 1D datasets to fix an issue I ran into with ray objects.
affected #:  1 file (-1 bytes)

--- a/yt/frontends/enzo/data_structures.py	Tue Sep 20 16:49:04 2011 -0400
+++ b/yt/frontends/enzo/data_structures.py	Tue Sep 20 18:06:40 2011 -0600
@@ -791,8 +791,8 @@
             self.conversion_factors[data_labels[k]] = v
         self.refine_by = self.parameters["RefineBy"]
         self.dimensionality = self.parameters["TopGridRank"]
-        self.domain_dimensions = self.parameters["TopGridDimensions"]
         if self.dimensionality > 1:
+            self.domain_dimensions = self.parameters["TopGridDimensions"]
             self.domain_left_edge = na.array(self.parameters["DomainLeftEdge"],
                                              "float64").copy()
             self.domain_right_edge = na.array(self.parameters["DomainRightEdge"],
@@ -802,6 +802,7 @@
                                              "float64")
             self.domain_right_edge = na.array(self.parameters["DomainRightEdge"],
                                              "float64")
+            self.domain_dimensions = na.array([self.parameters["TopGridDimensions"],1,1])
 
         self.current_time = self.parameters["InitialTime"]
         # To be enabled when we can break old pickles:

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