Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • pyddg pyddg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 190
    • Issues 190
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pyddg
  • pyddgpyddg
  • Issues
  • #647
Closed
Open
Issue created Dec 20, 2023 by Le Nam Do@doDeveloper

`look_at_point` user's guide assumes old implementation

Came up in !636 (merged).

The look_at_point functions were rewritten in 78f74b32. It appears as if view_direction has been replaced by obj_front, but the user's guide wasn't adapted to these changes. Running the examples results in

    look_at_point(arrow, point, bobj_front=(0, 0, 1))
  File "/var/home/flos/projects/pyddg/pyddg/ddg/visualization/blender/object.py", line 225, in look_at_point
    bobj_matrix_inv = np.linalg.inv(bobj_matrix)
  File "<__array_function__ internals>", line 180, in inv
  File "/var/home/flos/.cache/pypoetry/virtualenvs/pyddg-4YNAg0_4-py3.10/lib/python3.10/site-packages/numpy/linalg/linalg.py", line 545, in inv
    ainv = _umath_linalg.inv(a, signature=signature, extobj=extobj)
  File "/var/home/flos/.cache/pypoetry/virtualenvs/pyddg-4YNAg0_4-py3.10/lib/python3.10/site-packages/numpy/linalg/linalg.py", line 88, in _raise_linalgerror_singular
    raise LinAlgError("Singular matrix")
numpy.linalg.LinAlgError: Singular matrix

@tyburn, you're probably the most knowledgeable...

Assignee
Assign to
Time tracking