Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

incompatible with python 3 #10

Open
jthornbrue opened this issue Dec 23, 2015 · 3 comments
Open

incompatible with python 3 #10

jthornbrue opened this issue Dec 23, 2015 · 3 comments

Comments

@jthornbrue
Copy link

nuff said

@LennyLip
Copy link

LennyLip commented Mar 1, 2016

@jthornbrue just

  1. change all xrange to range

@staticmethod
def pixel_to_tile(pixel):
    """Transform pixel to tile coordinates"""
    return pixel[0] / 256, pixel[1] / 256 

change to

@staticmethod
def pixel_to_tile(pixel):
    """Transform pixel to tile coordinates"""
    return pixel[0] // 256, pixel[1] // 256 

@buckhx
Copy link
Owner

buckhx commented Mar 1, 2016

If you do make that change, PR it and I'll merge it into master.

On Tue, Mar 1, 2016 at 2:18 PM, LennyLip [email protected] wrote:

@jthornbrue https://github.com/jthornbrue just

  1. change all xrange to range

@staticmethod
def pixel_to_tile(pixel):
"""Transform pixel to tile coordinates"""
return pixel[0] / 256, pixel[1] / 256 # here

change to

@staticmethod
def pixel_to_tile(pixel):
"""Transform pixel to tile coordinates"""
return pixel[0] // 256, pixel[1] // 256 # here


Reply to this email directly or view it on GitHub
#10 (comment).

@buckheroux
www.buckheroux.com

@LennyLip
Copy link

#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants