Skip to content

Commit

Permalink
fix: using preferred copy method
Browse files Browse the repository at this point in the history
  • Loading branch information
engnadeau committed Aug 23, 2022
1 parent e2c3c53 commit 85b997f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybotics/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def displace(self, q: float = 0) -> npt.NDArray[np.float64]:
:return vector of new displacement state
"""
v = np.copy(self.vector) # type: ignore
v = self.vector.copy()
v[2] += q
return v

Expand All @@ -169,6 +169,6 @@ def displace(self, q: float = 0) -> npt.NDArray[np.float64]:
:return vector of new displacement state
"""
v = np.copy(self.vector)
v = self.vector.copy()
v[3] += q
return v

0 comments on commit 85b997f

Please sign in to comment.