Skip to content

Commit

Permalink
manuall ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed May 31, 2024
1 parent 39417a2 commit 0a72657
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/notebooks/cartpole_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def animate(i):
y_pole = np.cumsum([y_cart, pole_length * cos(theta)])
line.set_data(x_pole, y_pole)
time = i * sleep / 1000.0
time_text.set_text("time = %.1f sec" % time)
time_text.set_text(f"time = {time:.1f} sec")
return patch, line, time_text

anim = animation.FuncAnimation(
Expand Down
4 changes: 2 additions & 2 deletions examples/notebooks/p2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
]
problem = crocoddyl.ShootingProblem(
x0,
sum(seqs, [])[:-1],
seqs[-1][-1], # noqa: RUF017
sum(seqs, [])[:-1], # noqa: RUF017
seqs[-1][-1],
)

# Creating the DDP solver for this OC problem, defining a logger
Expand Down

0 comments on commit 0a72657

Please sign in to comment.