mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-04-22 03:00:22 -04:00
add # pragma: no cover
This commit is contained in:
@@ -427,7 +427,7 @@ def do_simulation(cx, cy, cyaw, ck, sp, dl, initial_state):
|
||||
print("Goal")
|
||||
break
|
||||
|
||||
if show_animation:
|
||||
if show_animation: # pragma: no cover
|
||||
plt.cla()
|
||||
if ox is not None:
|
||||
plt.plot(ox, oy, "xr", label="MPC")
|
||||
@@ -563,7 +563,7 @@ def main():
|
||||
t, x, y, yaw, v, d, a = do_simulation(
|
||||
cx, cy, cyaw, ck, sp, dl, initial_state)
|
||||
|
||||
if show_animation:
|
||||
if show_animation: # pragma: no cover
|
||||
plt.close("all")
|
||||
plt.subplots()
|
||||
plt.plot(cx, cy, "-r", label="spline")
|
||||
@@ -596,7 +596,7 @@ def main2():
|
||||
t, x, y, yaw, v, d, a = do_simulation(
|
||||
cx, cy, cyaw, ck, sp, dl, initial_state)
|
||||
|
||||
if show_animation:
|
||||
if show_animation: # pragma: no cover
|
||||
plt.close("all")
|
||||
plt.subplots()
|
||||
plt.plot(cx, cy, "-r", label="spline")
|
||||
|
||||
Reference in New Issue
Block a user