[yt-svn] commit/yt: jzuhone: Merged in ngoldbaum/yt (pull request #1841)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Nov 9 11:15:04 PST 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/452d6d6c36e6/
Changeset:   452d6d6c36e6
Branch:      yt
User:        jzuhone
Date:        2015-11-09 19:14:53+00:00
Summary:     Merged in ngoldbaum/yt (pull request #1841)

Fix issue with parsing gadget data in python3
Affected #:  1 file

diff -r 8695789ff8e331072dfd65d4d21691d4f30dcdfa -r 452d6d6c36e658d9c2df5753619b07824ca2f5bc yt/frontends/gadget/data_structures.py
--- a/yt/frontends/gadget/data_structures.py
+++ b/yt/frontends/gadget/data_structures.py
@@ -129,7 +129,7 @@
         # The entries in this header are capitalized and named to match Table 4
         # in the GADGET-2 user guide.
 
-        f = open(self.parameter_filename)
+        f = open(self.parameter_filename, 'rb')
         hvals = read_record(f, self._header_spec)
         for i in hvals:
             if len(hvals[i]) == 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