[yt-svn] commit/yt-3.0: ngoldbaum: Preventing a segfault due to garbage domain dimensions.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Nov 15 03:17:10 PST 2013


1 new commit in yt-3.0:

https://bitbucket.org/yt_analysis/yt-3.0/commits/28de35a5f913/
Changeset:   28de35a5f913
Branch:      yt-3.0
User:        ngoldbaum
Date:        2013-11-15 05:50:08
Summary:     Preventing a segfault due to garbage domain dimensions.
Affected #:  1 file

diff -r 5d18ef99633efa85f5ea39c63d1509554b759eb8 -r 28de35a5f9134a31546184b96913c53b1e474887 yt/frontends/sph/data_structures.py
--- a/yt/frontends/sph/data_structures.py
+++ b/yt/frontends/sph/data_structures.py
@@ -174,6 +174,8 @@
         self._unit_base = unit_base
         if bounding_box is not None:
             bbox = np.array(bounding_box, dtype="float64")
+            if bbox.shape == (2, 3):
+                bbox = bbox.transpose()
             self.domain_left_edge = bbox[:,0]
             self.domain_right_edge = bbox[:,1]
         else:

Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/

--

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