GeoMop / bapprox

Python tool for approximate 3d points using Bspline surface
3 stars 1 forks source link

Method chol and sparse matrixes #19

Closed jirihnidek closed 7 years ago

jirihnidek commented 7 years ago

Method method: chol can't be used with combination with dense matrixes (sparse: false) in configuration file. The program is terminated with following error:

Traceback (most recent call last):
  File "./src/main.py", line 51, in <module>
    main(parse_arguments())
  File "./src/main.py", line 29, in main
    terrain.approximate_terrain()
  File "/home/jiri/GitHub/bapprox/src/terrain_data.py", line 302, in approximate_terrain
    {'threshold': threshold})
  File "/home/jiri/GitHub/bapprox/src/approx/terrain.py", line 886, in approx
    return approx_chol(terrain_data, quad, u_knots, v_knots, sparse, conf['threshold'])
  File "/home/jiri/GitHub/bapprox/src/approx/terrain.py", line 820, in approx_chol
    c_mat = bb_mat + r * (bb_norm[0] / a_norm[0]) * a_mat
IndexError: invalid index to scalar variable.