[yt-svn] commit/yt: atmyers: Merged in ngoldbaum/yt (pull request #1977)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Feb 3 09:23:31 PST 2016
1 new commit in yt:
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