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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sun Mar 27 14:30:32 PDT 2016


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/9b8eedf41989/
Changeset:   9b8eedf41989
Branch:      yt
User:        ngoldbaum
Date:        2016-03-23 23:16:37+00:00
Summary:     Only add fields to field_info.field_list if they aren't already added
Affected #:  1 file

diff -r 66d8895f15b34d51b001a3618ff9c89f5bc765a9 -r 9b8eedf4198944004a41519bfb6d62542a7034ec yt/data_objects/static_output.py
--- a/yt/data_objects/static_output.py
+++ b/yt/data_objects/static_output.py
@@ -523,7 +523,9 @@
         fields = [ (union.name, field) for field in fields]
         new_fields = [_ for _ in fields if _ not in self.field_list]
         self.field_list.extend(new_fields)
-        self.field_info.field_list.extend(new_fields)
+        new_field_info_fields = [
+            _ for _ in fields if _ not in self.field_info.field_list]
+        self.field_info.field_list.extend(new_field_info_fields)
         self.index.field_list = sorted(self.field_list)
         # Give ourselves a chance to add them here, first, then...
         # ...if we can't find them, we set them up as defaults.


https://bitbucket.org/yt_analysis/yt/commits/5a08905d2e43/
Changeset:   5a08905d2e43
Branch:      yt
User:        MatthewTurk
Date:        2016-03-27 21:30:23+00:00
Summary:     Merged in ngoldbaum/yt (pull request #2071)

Only add fields to field_info.field_list if they aren't already added
Affected #:  1 file

diff -r 9fa87cf2500ac6560789c9a58f1f419bb12cbd7c -r 5a08905d2e438f08244ca4819d523f62dfc4e86d yt/data_objects/static_output.py
--- a/yt/data_objects/static_output.py
+++ b/yt/data_objects/static_output.py
@@ -523,7 +523,9 @@
         fields = [ (union.name, field) for field in fields]
         new_fields = [_ for _ in fields if _ not in self.field_list]
         self.field_list.extend(new_fields)
-        self.field_info.field_list.extend(new_fields)
+        new_field_info_fields = [
+            _ for _ in fields if _ not in self.field_info.field_list]
+        self.field_info.field_list.extend(new_field_info_fields)
         self.index.field_list = sorted(self.field_list)
         # Give ourselves a chance to add them here, first, then...
         # ...if we can't find them, we set them up as defaults.

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160327/862e1eac/attachment.html>


More information about the yt-svn mailing list