Skip to content

Commit

Permalink
fixed for py3
Browse files Browse the repository at this point in the history
  • Loading branch information
thearn committed Jun 18, 2017
1 parent edd44ea commit 669ddc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import glob

from magiceye_solver import magiceye_solve_file
from magiceye_solve import magiceye_solve_file

"""
Runs magiceye_solver on the images in the samples directory
Expand Down
2 changes: 1 addition & 1 deletion magiceye_solve/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def offset(img):
"""
img = img - img.mean()
ac = fftconvolve(img, np.flipud(np.fliplr(img)), mode='same')
ac = ac[len(ac) / 2]
ac = ac[int(len(ac) / 2)]
idx = np.where((ac - np.median(ac)) / ac.std() > 3)[0]
diffs = []
diffs = np.ediff1d(idx)
Expand Down

0 comments on commit 669ddc8

Please sign in to comment.