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

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


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/3701122b42be/
Changeset:   3701122b42be
Branch:      yt
User:        xarthisius
Date:        2015-08-06 21:36:05+00:00
Summary:     [enzo] sort species names
Affected #:  1 file

diff -r dec015906fc0dd799c4b01a3b3f0c9f3c75e1b9a -r 3701122b42bec51cad66a6d944a38ffd6199d600 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.add_species_field(sp)
             self.species_names.append(known_species_names[sp])
+        self.species_names.sort()  # bb #1059
 
     def setup_fluid_fields(self):
         # Now we conditionally load a few other things.


https://bitbucket.org/yt_analysis/yt/commits/475280b53ae1/
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.add_species_field(sp)
             self.species_names.append(known_species_names[sp])
+        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