Coder Social home page Coder Social logo

Fix QR method about bapprox HOT 1 CLOSED

geomop avatar geomop commented on August 23, 2024
Fix QR method

from bapprox.

Comments (1)

jirihnidek avatar jirihnidek commented on August 23, 2024

The program is terminated with this error:

Creating B matrix ...
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 307, in approximate_terrain
    raw, diffs = approx.terrain.approx(solver_method, terrain, u_knots, v_knots, sparse=sparse)
  File "/home/jiri/GitHub/bapprox/src/approx/terrain.py", line 882, in approx
    return approx_qr(terrain_data, u_knots, v_knots, sparse)
  File "/home/jiri/GitHub/bapprox/src/approx/terrain.py", line 607, in approx_qr
    b_mat, interval = build_ls_matrix(u_knots, v_knots, terrain_data, True)
  File "/home/jiri/GitHub/bapprox/src/approx/terrain.py", line 239, in build_ls_matrix
    u_base_vec, i_idx = spline_base_vec(u_knots, terrain[idx, 0], 0, sparse)
  File "/home/jiri/GitHub/bapprox/src/approx/terrain.py", line 132, in spline_base_vec
    idx = find_index(knot_vec, t_param)
  File "/home/jiri/GitHub/bapprox/src/approx/terrain.py", line 105, in find_index
    if _t_param >= _knot_vec[est]:
IndexError: index -8207998 is out of bounds for axis 0 with size 15

from bapprox.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.