[yt-svn] commit/yt: ngoldbaum: Ensuring that castro domain_dimensions is a numpy array.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Jul 2 11:37:46 PDT 2013
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/af95c721b2e0/
Changeset: af95c721b2e0
Branch: yt
User: ngoldbaum
Date: 2013-07-02 20:03:43
Summary: Ensuring that castro domain_dimensions is a numpy array.
Affected #: 1 file
diff -r b67a988e966df8f09e6783ca78f5d7050fd1b14d -r af95c721b2e0cf1b6b795df344b818c6a6c2d988 yt/frontends/castro/data_structures.py
--- a/yt/frontends/castro/data_structures.py
+++ b/yt/frontends/castro/data_structures.py
@@ -608,7 +608,7 @@
self.parameters["TopGridRank"] = len(self.parameters["TopGridDimensions"])
self.dimensionality = self.parameters["TopGridRank"]
self.periodicity = ensure_tuple(self.fparameters['castro.lo_bc'] == 0)
- self.domain_dimensions = self.parameters["TopGridDimensions"]
+ self.domain_dimensions = np.array(self.parameters["TopGridDimensions"])
self.refine_by = self.parameters.get("RefineBy", 2)
if (self.parameters.has_key("ComovingCoordinates") and
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