Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Convert to Python3 #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions alyn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
""" Import required modules"""
from deskew import *
from skew_detect import *
from __future__ import print_function
2 changes: 1 addition & 1 deletion alyn/deskew.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import matplotlib.pyplot as plt

from skew_detect import SkewDetect
from .skew_detect import SkewDetect
from skimage import io
from skimage.transform import rotate

Expand Down
4 changes: 2 additions & 2 deletions alyn/skew_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def compare_sum(self, value):
def display(self, data):

for i in data:
print i + ": " + str(data[i])
print(i + ": " + str(data[i]))

def calculate_deviation(self, angle):

Expand All @@ -104,7 +104,7 @@ def run(self):
if self.batch_path:
self.batch_process()
else:
print "Invalid input, nothing to process."
print("Invalid input, nothing to process.")
else:
self.process_single_file()

Expand Down