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

TypeError with medpy.metric.binary #72

Closed
anjany opened this issue May 11, 2018 · 2 comments
Closed

TypeError with medpy.metric.binary #72

anjany opened this issue May 11, 2018 · 2 comments

Comments

@anjany
Copy link

anjany commented May 11, 2018

When using 'medpy.metric.binary.hd' or 'medpy.metric.binary.asd', I get the following error:

TypeError: numpy boolean subtract, the - operator, is deprecated, use the bitwise_xor, the ^ operator, or the logical_xor function instead.

With stack trace pointing to a line in medpy/metric/binary.pyc
1169 result_border = result - binary_erosion(result, structure=footprint, iterations=1)

Does the operator need any update? (I'm using MedPy 0.3.0)

@wasserth
Copy link

I am having the same problem if I install from pip. If I build directly from master it works fine.

@loli
Copy link
Owner

loli commented Jun 17, 2018

Thanks for the solution @wasserth
Please use the current master, we are planning on pushing a new release, soon.

@loli loli closed this as completed Jun 17, 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

No branches or pull requests

3 participants