Skip to content

Commit 679e245

Browse files
authored
Allow torch tensors for log_rigid3 (#1769)
1 parent b9f1380 commit 679e245

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

rerun_py/rerun_sdk/rerun/log/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535

3636

3737
def _to_sequence(array: Optional[npt.ArrayLike]) -> Optional[Sequence[float]]:
38-
if isinstance(array, np.ndarray):
39-
return np.require(array, float).tolist() # type: ignore[no-any-return]
40-
41-
return array # type: ignore[return-value]
38+
return np.require(array, float).tolist() # type: ignore[no-any-return]
4239

4340

4441
def _normalize_colors(colors: Optional[Union[Color, Colors]] = None) -> npt.NDArray[np.uint8]:

0 commit comments

Comments
 (0)