[yt-svn] commit/yt: BW Keller: Leave bbox as a Numpy array until it has units assigned.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Jul 20 12:00:04 PDT 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/ed2f3671ac39/
Changeset:   ed2f3671ac39
Branch:      yt
User:        BW Keller
Date:        2015-07-17 15:55:42+00:00
Summary:     Leave bbox as a Numpy array until it has units assigned.
Affected #:  1 file

diff -r 0d6ac4368c991d9fd829d41fd4499c52971045e9 -r ed2f3671ac39a4e925c474b4870722527a6a63d9 yt/frontends/tipsy/data_structures.py
--- a/yt/frontends/tipsy/data_structures.py
+++ b/yt/frontends/tipsy/data_structures.py
@@ -180,7 +180,7 @@
                 self.domain_left_edge = None
                 self.domain_right_edge = None
         else: 
-            bbox = self.arr(self.bounding_box, dtype="float64")
+            bbox = np.array(self.bounding_box, dtype="float64")
             if bbox.shape == (2, 3):
                 bbox = bbox.transpose()
             self.domain_left_edge = bbox[:,0]

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