8000 Python 3 compatibility for anisotropic_diffusion · Issue #29 · loli/medpy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Python 3 compatibility for anisotropic_diffusion #29
Closed
@Overdrivr

Description

@Overdrivr

I've installed medpy from master branch, however I'm still getting a Python 3 incompatibility, xrange function was removed in py3 and replaced by range. For short lists, it should not make a difference in Python 2.

   [...]\src\medpy\medpy\filter\smoothing.py", line 135, in anisotropic_diffusion
    deltas = [numpy.zeros_like(out) for _ in xrange(out.ndim)]
NameError: name 'xrange' is not defined

I can make the changes and a PR if you're interested, let me know

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0