adding # pragma: no cover

This commit is contained in:
Atsushi Sakai
2019-02-03 11:24:53 +09:00
parent af854d6d1a
commit aefa8990dd
7 changed files with 16 additions and 34 deletions

View File

@@ -22,7 +22,7 @@ class NLinkArm(object):
self.lim = sum(link_lengths)
self.goal = np.array(goal).T
if show_animation:
if show_animation: # pragma: no cover
self.fig = plt.figure()
self.fig.canvas.mpl_connect('button_press_event', self.click)
@@ -46,7 +46,7 @@ class NLinkArm(object):
np.sin(np.sum(self.joint_angles[:i]))
self.end_effector = np.array(self.points[self.n_links]).T
if self.show_animation:
if self.show_animation: # pragma: no cover
self.plot()
def plot(self): # pragma: no cover

View File

@@ -21,7 +21,7 @@ MOVING_TO_GOAL = 2
show_animation = True
def main():
def main(): # pragma: no cover
"""
Creates an arm using the NLinkArm class and uses its inverse kinematics
to move it to the desired position.