1. Matthew Turk
  2. yt

Commits

dcollins4096  committed c9e8438

renaming np in _flush_data_to_grids

  • Participants
  • Parent commits 1b93a18
  • Branches yt

Comments (0)

Files changed (1)

File yt/data_objects/data_containers.py

View file
         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)