[yt-svn] commit/yt: samskillman: Replacing '/' with '.' seems to fix a bug that appears when accessing the .yt files on MacOSX after we made the .field_info a property which instantiates the hierachy. I do not know why this fixes anything, but it does.

Bitbucket commits-noreply at bitbucket.org
Wed Feb 15 09:41:21 PST 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/97d44dd469ec/
changeset:   97d44dd469ec
branch:      yt
user:        samskillman
date:        2012-02-15 18:33:31
summary:     Replacing '/' with '.' seems to fix a bug that appears when accessing the .yt files on MacOSX after we made the .field_info a property which instantiates the hierachy.  I do not know why this fixes anything, but it does.
affected #:  1 file

diff -r 2421b03080eb1df86b9f0669aa4e25a619dde0cc -r 97d44dd469ec6aa2c130a9e009c3adcb6a9a74c7 yt/data_objects/hierarchy.py
--- a/yt/data_objects/hierarchy.py
+++ b/yt/data_objects/hierarchy.py
@@ -316,7 +316,7 @@
             return None
         if node[0] != "/": node = "/%s" % node
 
-        myGroup = self._data_file['/']
+        myGroup = self._data_file['.']
         for group in node.split('/'):
             if group:
                 if group not in myGroup:

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