Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipuch committed May 14, 2023
1 parent 69680b5 commit 6dc3203
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/forward_dynamics/double_pendulum_with_force.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,12 @@ def RK4(
fext.add_external_force(external_force=force1, segment_index=0)
fext.add_external_force(external_force=force2, segment_index=1)

model, time_steps, all_states, dynamics = apply_force_and_drop_pendulum(t_final=10, external_forces=fext, nb_segments=nb_segments)
model, time_steps, all_states, dynamics = apply_force_and_drop_pendulum(
t_final=10, external_forces=fext, nb_segments=nb_segments
)

# animate the motion
from bionc import Viz

viz = Viz(model)
viz.animate(all_states[:12*nb_segments, :], None)
viz.animate(all_states[: 12 * nb_segments, :], None)

0 comments on commit 6dc3203

Please sign in to comment.