Skip to content

Commit

Permalink
Update spindex.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fiveham authored Dec 26, 2019
1 parent 46b4c37 commit d0e9934
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,9 @@ def _grow_cells_line_segment(side, scale):
if not (_passthru(cell, a, b) and
box.dim == (_BBox(cell) & box).dim):
core.remove(cell)

return _Cell._cache_back(core)

return _Cell._INTERN_CACHE.multi(core)
#return _Cell._cache_back(core)

def get_cells_1d(points, scale=None):
"""Return a set of the cells that intersect the 1-D feature `points`.
Expand Down Expand Up @@ -234,7 +235,7 @@ class _Cell:

@staticmethod
def get(x_index, y_index, scale, cache=_INTERN_CACHE):
return _INTERN_CACHE.single(
return cache.single(
_Cell(x_index, y_index, scale))

@staticmethod
Expand Down

0 comments on commit d0e9934

Please sign in to comment.