Skip to content

Commit

Permalink
re-cast to int (types: int / np.int64)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Feb 16, 2018
1 parent bc04269 commit aaf082c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tractor/splinesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def BlantonMethod(image, mask, gridsize):
# Compute medians in grid cells
grid = np.zeros((ny, nx))
for iy, y in enumerate(ygrid):
ylo, yhi = max(0, y - halfbox), min(H, y + halfbox)
ylo, yhi = int(max(0, y - halfbox)), int(min(H, y + halfbox))
for ix, x in enumerate(xgrid):
xlo, xhi = max(0, x - halfbox), min(W, x + halfbox)
xlo, xhi = int(max(0, x - halfbox)), int(min(W, x + halfbox))
im = image[ylo:yhi, xlo:xhi]
if mask is not None:
im = im[mask[ylo:yhi, xlo:xhi]]
Expand Down

0 comments on commit aaf082c

Please sign in to comment.