Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
fix: Incompatible return value type
Browse files Browse the repository at this point in the history
  • Loading branch information
engnadeau committed Aug 23, 2022
1 parent da82156 commit b933c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybotics/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,4 @@ def compute_relative_errors(
robot: Robot,
) -> npt.NDArray[np.float64]:
"""Compute the relative errors of a given set of position combinations."""
return list(map(compute_relative_error, qs_a, qs_b, distances, repeat(robot)))
return np.array(map(compute_relative_error, qs_a, qs_b, distances, repeat(robot)))

0 comments on commit b933c06

Please # to comment.