Skip to content

Commit

Permalink
mp_fourier: call python version for tiny images
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Dec 11, 2017
1 parent 7d57e76 commit 30fb8aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tractor/psf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def lanczos_shift_image(img, dx, dy, inplace=False, force_python=False):
Ly /= Ly.sum()

#print('mp_fourier:', mp_fourier)
if mp_fourier is None or force_python:
H,W = img.shape
if mp_fourier is None or force_python or W <= 8 or H <= 8:
sx = correlate1d(img, Lx, axis=1, mode='constant')
outimg = correlate1d(sx, Ly, axis=0, mode='constant')
else:
Expand Down

0 comments on commit 30fb8aa

Please sign in to comment.