[yt-svn] commit/yt: dcollins4096: renaming np in _flush_data_to_grids

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sun Jul 6 17:12:58 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/c9e843865b2a/
Changeset:   c9e843865b2a
Branch:      yt
User:        dcollins4096
Date:        2014-07-07 02:08:39
Summary:     renaming np in _flush_data_to_grids
Affected #:  1 file

diff -r 1b93a1840f38225374a8a4bd7e487eb4e95c335c -r c9e843865b2a3f74319fced1e70e98304b32c490 yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py
+++ b/yt/data_objects/data_containers.py
@@ -2669,14 +2669,14 @@
         i = 0
         for grid in self._grids:
             pointI = self._get_point_indices(grid)
-            np = pointI[0].ravel().size
+            npoints = pointI[0].ravel().size
             if grid.has_key(field):
                 new_field = grid[field]
             else:
                 new_field = np.ones(grid.ActiveDimensions, dtype=dtype) * default_val
-            new_field[pointI] = self[field][i:i+np]
+            new_field[pointI] = self[field][i:i+npoints]
             grid[field] = new_field
-            i += np
+            i += npoints
 
     def _is_fully_enclosed(self, grid):
         return np.all(self._get_cut_mask)

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