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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Feb 3 09:23:35 PST 2016


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/e5f0b1913dd6/
Changeset:   e5f0b1913dd6
Branch:      yt
User:        ngoldbaum
Date:        2016-02-02 01:30:27+00:00
Summary:     Don't compare return value of np.any exactly with False
Affected #:  1 file

diff -r 34ed15d98fe48c75d824fbf6246d8ab89c4e2398 -r e5f0b1913dd650c6a7dd6c6f13c6366ec0ab1700 yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -394,7 +394,7 @@
         fields = []
         for ptype in self.dataset["AppendActiveParticleType"]:
             select_grids = self.grid_active_particle_count[ptype].flat
-            if np.any(select_grids) is False:
+            if not np.any(select_grids):
                 current_ptypes = self.dataset.particle_types
                 new_ptypes = [p for p in current_ptypes if p != ptype]
                 self.dataset.particle_types = new_ptypes


https://bitbucket.org/yt_analysis/yt/commits/a75f6977daac/
Changeset:   a75f6977daac
Branch:      yt
User:        atmyers
Date:        2016-02-03 17:23:27+00:00
Summary:     Merged in ngoldbaum/yt (pull request #1977)

Fix loading active particle datasets that contain no active particles
Affected #:  1 file

diff -r 5b35020ba8fbcdda7134a48c6edfd019368e9248 -r a75f6977daac5046fbecaca8fc19b2414bea85f8 yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -394,7 +394,7 @@
         fields = []
         for ptype in self.dataset["AppendActiveParticleType"]:
             select_grids = self.grid_active_particle_count[ptype].flat
-            if np.any(select_grids) is False:
+            if not np.any(select_grids):
                 current_ptypes = self.dataset.particle_types
                 new_ptypes = [p for p in current_ptypes if p != ptype]
                 self.dataset.particle_types = new_ptypes

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