[yt-svn] commit/yt: MatthewTurk: Merged in ngoldbaum/yt (pull request #2071)

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


1 new commit in yt:

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/06789e32/attachment.htm>


More information about the yt-svn mailing list