Skip to content

Commit

Permalink
ruff: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Sep 22, 2024
1 parent 7d55bf0 commit a8cecda
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions examples/inverse-kinematics-3d.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
from __future__ import print_function

import numpy as np
from numpy.linalg import norm, solve

import pinocchio
from numpy.linalg import norm, solve

model = pinocchio.buildSampleModelManipulator()
data = model.createData()
Expand Down Expand Up @@ -40,8 +37,9 @@
print("Convergence achieved!")
else:
print(
"\nWarning: the iterative algorithm has not reached convergence to the desired precision"
"\nWarning: the iterative algorithm has not reached convergence to "
"the desired precision"
)

print("\nresult: %s" % q.flatten().tolist())
print("\nfinal error: %s" % err.T)
print(f"\nresult: {q.flatten().tolist()}")
print(f"\nfinal error: {err.T}")

0 comments on commit a8cecda

Please sign in to comment.