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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Mar 26 07:12:05 PDT 2014


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/8e1e472c761c/
Changeset:   8e1e472c761c
Branch:      yt-3.0
User:        ngoldbaum
Date:        2014-03-25 21:58:20
Summary:     Adding __contains__ for PlotDictionary.
Affected #:  1 file

diff -r d919c3c6e81f6853c3327bf3c6189a8f9d40b94c -r 8e1e472c761cb4a518be01233fd0edc830ca3e95 yt/visualization/plot_container.py
--- a/yt/visualization/plot_container.py
+++ b/yt/visualization/plot_container.py
@@ -93,6 +93,10 @@
         item = self.data_source._determine_fields(item)[0]
         return dict.__getitem__(self, item)
 
+    def __contains__(self, item):
+        item = self.data_source._determine_fields(item)[0]
+        return dict.__contains__(self, item)
+
     def __init__(self, data_source, *args):
         self.data_source = data_source
         return dict.__init__(self, args)


https://bitbucket.org/yt_analysis/yt/commits/986e420bbe8b/
Changeset:   986e420bbe8b
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-03-26 15:11:58
Summary:     Merged in ngoldbaum/yt/yt-3.0 (pull request #768)

Adding __contains__ for PlotDictionary.
Affected #:  1 file

diff -r cf406118daf0c426c651e2b906e6da8d4cb013d4 -r 986e420bbe8bb373ebc2db5699198f5ae087324c yt/visualization/plot_container.py
--- a/yt/visualization/plot_container.py
+++ b/yt/visualization/plot_container.py
@@ -93,6 +93,10 @@
         item = self.data_source._determine_fields(item)[0]
         return dict.__getitem__(self, item)
 
+    def __contains__(self, item):
+        item = self.data_source._determine_fields(item)[0]
+        return dict.__contains__(self, item)
+
     def __init__(self, data_source, *args):
         self.data_source = data_source
         return dict.__init__(self, args)

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