[yt-svn] commit/yt: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Wed Feb 15 11:32:08 PST 2012


2 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/af718173e23e/
changeset:   af718173e23e
branch:      yt
user:        MatthewTurk
date:        2012-02-15 20:31:42
summary:     Fixing sometimes-problem with zero-values in ticks.
affected #:  1 file

diff -r 97d44dd469ec6aa2c130a9e009c3adcb6a9a74c7 -r af718173e23e8457b12c2b6fb4f8820c597f3fb5 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -76,8 +76,11 @@
         return self.func(*args, **kwargs)
 
     def ticks(self, mi, ma):
-        print mi, ma
-        return self.locator(mi, ma)
+        try:
+            ticks = self.locator(mi, ma)
+        except:
+            ticks = []
+        return ticks
 
 log_transform = FieldTransform('log10', na.log10, LogLocator())
 linear_transform = FieldTransform('linear', lambda x: x, LinearLocator())



https://bitbucket.org/yt_analysis/yt/changeset/72aa1b94c617/
changeset:   72aa1b94c617
branch:      yt
user:        MatthewTurk
date:        2012-02-15 20:32:02
summary:     Merge
affected #:  1 file

diff -r af718173e23e8457b12c2b6fb4f8820c597f3fb5 -r 72aa1b94c617017334e7b613cbebee265b13cfac 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