We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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!
The text was updated successfully, but these errors were encountered: