Skip to content

Commit 7dc13e2

Browse files
committed
mypy: fix using same name for time
1 parent ae9b8e5 commit 7dc13e2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

examples/KnotCase/knot_simulation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def base_target(t: float, rod: RodType) -> Pose:
183183
plot_video3D(recorded_history, video_name=filename_video, margin=0.2, fps=10)
184184

185185
# Plot knot topological quantities
186-
time = np.asarray(recorded_history["time"])
186+
timestep = np.asarray(recorded_history["time"])
187187
positions = np.asarray(recorded_history["position"])
188188
orientations = np.asarray(recorded_history["orientation"])
189189
radii = np.asarray(recorded_history["radius"])
@@ -198,9 +198,9 @@ def base_target(t: float, rod: RodType) -> Pose:
198198
)
199199

200200
plt.figure()
201-
plt.plot(time, total_twist, label="twist")
202-
plt.plot(time, total_writhe, label="writhe")
203-
plt.plot(time, total_link, label="link")
201+
plt.plot(timestep, total_twist, label="twist")
202+
plt.plot(timestep, total_writhe, label="writhe")
203+
plt.plot(timestep, total_link, label="link")
204204
plt.legend()
205205
plt.xlabel("time")
206206
plt.ylabel("link-writhe-twist quantity")

0 commit comments

Comments
 (0)