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

Divide by Zero when using curve = fitting.approximate_curve(tuple_list, 3) #181

Open
KeithSloan opened this issue Dec 24, 2024 · 0 comments
Labels
bug There is a problem with the coding or algorithms

Comments

@KeithSloan
Copy link

Have code that is executing

curve = fitting.approximate_curve(tuple_list, 3)

File "/Users/keithsloan/Library/Application Support/FreeCAD/Mod/toSketch/./freecad/toSketch/toSharedFunc.py", line 387, in fit_bspline_to_geom_geomdl
curve = fitting.approximate_curve(tuple_list, 3)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/FreeCAD 1.0.0.app/Contents/Resources/lib/python3.11/site-packages/geomdl/fitting.py", line 198, in approximate_curve
x = linalg.backward_substitution(matrix_u, y)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/FreeCAD 1.0.0.app/Contents/Resources/lib/python3.11/site-packages/geomdl/linalg.py", line 619, in backward_substitution
matrix_x[i] /= float(matrix_u[i][i])

float division by zero

  • OS: MacOS 14.4
  • Architecture: x86_64
    Version: 1.0.0.39109 (Git) Conda
  • Python version: 3.11.10
  • geomdl install source: pip
  • geomdl version 5.3.1
@KeithSloan KeithSloan added the bug There is a problem with the coding or algorithms label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug There is a problem with the coding or algorithms
Projects
None yet
Development

No branches or pull requests

1 participant