99991 / matting

Python package for alpha matting. This repository has moved:
https://github.com/pymatting/pymatting
Other
47 stars 10 forks source link

SyntaxError: invalid syntax: return L @ x + d * x #3

Closed abderhasan closed 4 years ago

abderhasan commented 5 years ago

Hello!

I'm running the code on a macOS, and always getting this error in alpha_matting.py (line 200): return L @ x + d * x

SyntaxError: invalid syntax

Do you have an idea on how I can fix this issue?

Thanks.

99991 commented 4 years ago

The @-operator is the matrix multiplication operator, available since 2014. I've replaced (hopefully) all occurrences of @ with .dot(...), but there might be other issues with very old Python versions. Let me know if you should come across any problems!

abderhasan commented 4 years ago

Thanks so much for your kind reply and clarification, appreciate it!

99991 commented 4 years ago

Seems to be solved.