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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Aug 13 09:21:59 PDT 2015

1 new commit in yt:

Changeset:   475280b53ae1
Branch:      yt
User:        MatthewTurk
Date:        2015-08-13 16:21:47+00:00
Summary:     Merged in xarthisius/yt (pull request #1682)

[enzo] sort species names. Fixes #1059
Affected #:  1 file

diff -r 957c5262085b47bcde96b64ba4631c1eca63a80b -r 475280b53ae10379ad79ac02519763085ec634c8 yt/frontends/enzo/fields.py
--- a/yt/frontends/enzo/fields.py
+++ b/yt/frontends/enzo/fields.py
@@ -137,7 +137,7 @@
                        ("enzo", "%s_Density" % species))
     def setup_species_fields(self):
-        species_names = [fn.rsplit("_Density")[0] for ft, fn in 
+        species_names = [fn.rsplit("_Density")[0] for ft, fn in
                          self.field_list if fn.endswith("_Density")]
         species_names = [sp for sp in species_names
                          if sp in known_species_names]
@@ -149,6 +149,7 @@
         for sp in species_names:
+        self.species_names.sort()  # bb #1059
     def setup_fluid_fields(self):
         # Now we conditionally load a few other things.

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