Skip to content

Commit

Permalink
Don't use np.float_ since it was removed in numpy 2.0 (#9037)
Browse files Browse the repository at this point in the history
Related to:
- #8996

Doesn't address the CI check issues -- can come in another PR.
  • Loading branch information
jleibs authored Feb 13, 2025
1 parent f953f9c commit 47328dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
FILTER_MIN_VISIBLE: Final = 500


def scale_camera(camera: Camera, resize: tuple[int, int]) -> tuple[Camera, npt.NDArray[np.float_]]:
def scale_camera(camera: Camera, resize: tuple[int, int]) -> tuple[Camera, npt.NDArray[np.float64]]:
"""Scale the camera intrinsics to match the resized image."""
assert camera.model == "PINHOLE"
new_width = resize[0]
Expand Down
2 changes: 1 addition & 1 deletion rerun_py/rerun_bindings/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
A type alias for vector distance metrics.
"""

VectorLike = Union[npt.NDArray[np.float_], list[float]]
VectorLike = Union[npt.NDArray[np.float64], list[float]]
"""
A type alias for vector-like objects.
"""

0 comments on commit 47328dc

Please sign in to comment.