[yt-svn] commit/yt: ngoldbaum: Add a keys method to the ProfileND base class

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Jun 17 10:26:13 PDT 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/74ba9f5c1865/
Changeset:   74ba9f5c1865
Branch:      yt
User:        ngoldbaum
Date:        2015-06-17 03:39:45+00:00
Summary:     Add a keys method to the ProfileND base class
Affected #:  1 file

diff -r 74708d4b2f748b14857763d25adbcfeb179c2494 -r 74ba9f5c1865d8ddb98788b88ee8bc18201a4cf1 yt/data_objects/profiles.py
--- a/yt/data_objects/profiles.py
+++ b/yt/data_objects/profiles.py
@@ -937,6 +937,9 @@
     def items(self):
         return [(k,self[k]) for k in self.field_data.keys()]
 
+    def keys(self):
+        return self.field_data.keys()
+
     def __iter__(self):
         return sorted(self.items())

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