Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
engnadeau committed Aug 26, 2022
1 parent d6c05f1 commit 9cb7110
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pybotics/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ def compute_absolute_errors(
:param positions: Array of Cartesian positions, shape=(n-poses, 3)
:param robot: Robot model
"""
result = np.fromiter(
return np.fromiter( # type: ignore
map(compute_absolute_error, qs, positions, repeat(robot)), dtype=np.float64
)
return result


def compute_relative_error(
Expand Down Expand Up @@ -157,7 +156,7 @@ def compute_relative_errors(
robot: Robot,
) -> npt.NDArray[np.float64]:
"""Compute the relative errors of a given set of position combinations."""
return np.fromiter(
return np.fromiter( # type: ignore
map(compute_relative_error, qs_a, qs_b, distances, repeat(robot)),
dtype=np.float64,
)

0 comments on commit 9cb7110

Please sign in to comment.