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

error #10

Open
nponts opened this issue Jan 9, 2024 · 0 comments
Open

error #10

nponts opened this issue Jan 9, 2024 · 0 comments

Comments

@nponts
Copy link

nponts commented Jan 9, 2024

Hi,
The tools looks awesome however I run into a division by zero error:

File /opt/miniconda3/envs/jupyterlab/lib/python3.12/site-packages/shapesimilarity/shapesimilarity.py:40, in shape_similarity(shape1, shape2, rotations, checkRotation)
38 min_frechet_distance = frechet_dist
39 # divide by Math.sqrt(2) to try to get the low results closer to
---> 40 result = max(1 - min_frechet_distance / (geo_avg_curve_len / math.sqrt(2)), 0)
41 return round(result, 4)

ZeroDivisionError: float division by zero

I checked my input and I really don't see what's wrong...
Help please!

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

1 participant