[yt-svn] commit/yt: MatthewTurk: Grafting on a fix to restore Orion functionality.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Mar 24 21:21:24 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/4b00820c086b/
Changeset:   4b00820c086b
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-03-25 05:20:33
Summary:     Grafting on a fix to restore Orion functionality.
Affected #:  1 file

diff -r 0fd1398b1eb96ea4321c3f8bf127d859c47aa0ed -r 4b00820c086bb1d5329e2f9ec3b8287c0127063e yt/frontends/boxlib/data_structures.py
--- a/yt/frontends/boxlib/data_structures.py
+++ b/yt/frontends/boxlib/data_structures.py
@@ -177,7 +177,7 @@
             if self.dimensionality < 3:
                 dx[i].append(DRE[2] - DLE[1])
         self.level_dds = np.array(dx, dtype="float64")
-        coordinate_type = int(header_file.next())
+        header_file.next()
         if self.pf.geometry == "cartesian":
             default_ybounds = (0.0, 1.0)
             default_zbounds = (0.0, 1.0)
@@ -580,7 +580,11 @@
         header_file.readline()
         self._header_mesh_start = header_file.tell()
         header_file.next()
-        coordinate_type = int(header_file.next())
+        next_line = header_file.next()
+        if len(next_line.split()) == 1:
+            coordinate_type = int(next_line)
+        else:
+            coordinate_type = 0
         if coordinate_type == 0:
             self.geometry = "cartesian"
         elif coordinate_type == 1:

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