Skip to content

Commit 92c6495

Browse files
committed
Remove print statements from sphinx gallery example.
1 parent 19ab143 commit 92c6495

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

examples/plot_forward_sim.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
that the model falls down on the treadmill. It also compares the evaluation
77
speed of PyDy's and Autolev's models.
88
"""
9-
print("loading modules...")
109
import timeit
1110

1211
from algait2de.gait2de import evaluate_autolev_rhs
@@ -20,10 +19,10 @@
2019
import yaml
2120

2221
# %%
23-
# Derive the equations of motion, including a constant treadmill motion.
24-
print("deriving equations of motion...")
25-
# symbolics = derive.derive_equations_of_motion(treadmill=True)
26-
symbolics = derive.derive_equations_of_motion(treadmill=True, passive_torques=True)
22+
# Derive the equations of motion, including a constant treadmill motion and
23+
# passive joint torques.
24+
symbolics = derive.derive_equations_of_motion(treadmill=True,
25+
passive_torques=True)
2726

2827
# %%
2928
# Load a parameter mapping from pygait2d symbol to numerical value, as well as
@@ -42,7 +41,7 @@
4241
# %%
4342
# Use PyDy to generate a function that can evaluate the right hand side of the
4443
# ordinary differential equations of the multibody system. This uses PyDy's
45-
# code geenration settings that result in the fastest numerical evaluation
44+
# code generation settings that result in the fastest numerical evaluation
4645
# times at the cost of a slower code generation and compilation time.
4746
rhs = generate_ode_function(
4847
symbolics.kanes_method.forcing,
@@ -89,7 +88,6 @@
8988
# Simulate the model for two seconds using the LSODA integrator (switches
9089
# between stiff and non-stiff modes).
9190
time_vector = np.linspace(0.0, 2.0, num=61)
92-
print("simulating...")
9391
trajectories = odeint(rhs, initial_conditions, time_vector, args=args)
9492

9593
# %%

0 commit comments

Comments
 (0)