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

support python3 #60

Merged
merged 5 commits into from
Nov 14, 2017
Merged

support python3 #60

merged 5 commits into from
Nov 14, 2017

Conversation

cancan101
Copy link
Collaborator

@cancan101 cancan101 commented Nov 14, 2017

This is basically good to go except for the xxx_todo_changeme.

@cancan101 cancan101 mentioned this pull request Nov 14, 2017
@loli
Copy link
Owner

loli commented Nov 14, 2017

Let's dare the merge :)

@@ -205,7 +205,7 @@ def indices(image, voxelspacing = None, mask = slice(None)):
if voxelspacing is None:
voxelspacing = [1.] * image.ndim

return join(*map(lambda (a, vs): a[mask].ravel() * vs, zip(numpy.indices(image.shape), voxelspacing)))
return join(*[a_vs[0][mask].ravel() * a_vs[1] for a_vs in zip(numpy.indices(image.shape), voxelspacing)])
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix this.

@cancan101 cancan101 changed the title [WIP] support python3 support python3 Nov 14, 2017
@cancan101
Copy link
Collaborator Author

Ok. I will merge this for now. We can fix fixme later

@cancan101 cancan101 merged commit 7e9e332 into loli:master Nov 14, 2017
@cancan101 cancan101 deleted the python3_support branch November 14, 2017 22:44
This was referenced Feb 14, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants