[Yt-svn] commit/yt: sskory: Errr. I decided that "import itertools at it" was too general as "it" is a word

Bitbucket commits-noreply at bitbucket.org
Thu Mar 3 16:46:12 PST 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/402864758a63/
changeset:   r3786:402864758a63
branch:      yt
user:        sskory
date:        2011-03-04 01:46:09
summary:     Errr. I decided that "import itertools at it" was too general as "it" is a word
in it's own right.
affected #:  1 file (8 bytes)

--- a/yt/analysis_modules/halo_finding/halo_objects.py	Thu Mar 03 17:41:42 2011 -0700
+++ b/yt/analysis_modules/halo_finding/halo_objects.py	Thu Mar 03 17:46:09 2011 -0700
@@ -27,7 +27,7 @@
 
 import gc
 import h5py
-import itertools as it
+import itertools
 import math
 import numpy as na
 import random
@@ -377,7 +377,7 @@
         # 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 it.izip(self["particle_position_x"],
+        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
@@ -720,7 +720,7 @@
             # 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 it.izip(self["particle_position_x"],
+            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

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