[yt-svn] commit/yt-3.0: MatthewTurk: Changing return value to {} from 0 for NumberOfActiveParticles.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Nov 8 10:45:20 PST 2013
1 new commit in yt-3.0:
https://bitbucket.org/yt_analysis/yt-3.0/commits/4a304d01aef9/
Changeset: 4a304d01aef9
Branch: yt-3.0
User: MatthewTurk
Date: 2013-11-08 19:44:57
Summary: Changing return value to {} from 0 for NumberOfActiveParticles.
Affected #: 1 file
diff -r f5643d2a09f83ba186599100c3fbcbdbb6329677 -r 4a304d01aef985b55fc8ce9c0a6706b308c3412f yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -121,7 +121,7 @@
@property
def NumberOfActiveParticles(self):
- if not hasattr(self.hierarchy, "grid_active_particle_count"): return 0
+ if not hasattr(self.hierarchy, "grid_active_particle_count"): return {}
id = self.id - self._id_offset
nap = dict((ptype, self.hierarchy.grid_active_particle_count[ptype][id]) \
for ptype in self.hierarchy.grid_active_particle_count)
Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/
--
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