[Yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Fri Mar 4 11:10:09 PST 2011
2 new changesets in yt:
http://bitbucket.org/yt_analysis/yt/changeset/4bf96db2ee37/
changeset: r3791:4bf96db2ee37
branch: stable
user: sskory
date: 2011-03-04 20:09:10
summary: Fixing the import of periodic_dist().
affected #: 1 file (50 bytes)
--- a/yt/analysis_modules/halo_finding/halo_objects.py Sat Feb 26 10:06:42 2011 -0500
+++ b/yt/analysis_modules/halo_finding/halo_objects.py Fri Mar 04 12:09:10 2011 -0700
@@ -38,6 +38,7 @@
from yt.config import ytcfg
from yt.utilities.performance_counters import \
yt_counters, time_function
+from yt.utilities.math_utils import periodic_dist
from .hop.EnzoHop import RunHOP
from .fof.EnzoFOF import RunFOF
http://bitbucket.org/yt_analysis/yt/changeset/474dc6074079/
changeset: r3792:474dc6074079
branch: stable
user: sskory
date: 2011-03-04 20:10:05
summary: Merging.
affected #: 0 files (0 bytes)
--- a/yt/analysis_modules/halo_finding/halo_objects.py Fri Mar 04 12:09:10 2011 -0700
+++ b/yt/analysis_modules/halo_finding/halo_objects.py Fri Mar 04 12:10:05 2011 -0700
@@ -378,8 +378,8 @@
# Find the distances to the particles. I don't like this much, but I
# can't see a way to eliminate a loop like this, either here or in
# yt.math.
- for pos in izip(self["particle_position_x"], self["particle_position_y"],
- self["particle_position_z"]):
+ for pos in itertools.izip(self["particle_position_x"],
+ self["particle_position_y"], self["particle_position_z"]):
dist[mark] = periodic_dist(cen, pos, period)
mark += 1
# Set up the radial bins.
@@ -721,8 +721,8 @@
# Find the distances to the particles. I don't like this much, but I
# can't see a way to eliminate a loop like this, either here or in
# yt.math.
- for pos in izip(self["particle_position_x"], self["particle_position_y"],
- self["particle_position_z"]):
+ for pos in itertools.izip(self["particle_position_x"],
+ self["particle_position_y"], self["particle_position_z"]):
dist[mark] = periodic_dist(cen, pos, period)
mark += 1
dist_min, dist_max = min(dist), max(dist)
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