From 66cfff777256b9e2a658e72297cb2ab90512f7c0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 20:05:30 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- omnigibson/controllers/osc_controller.py | 4 +++- omnigibson/utils/transform_utils.py | 1 - omnigibson/utils/usd_utils.py | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/omnigibson/controllers/osc_controller.py b/omnigibson/controllers/osc_controller.py index c97a4fbae..d7165f931 100644 --- a/omnigibson/controllers/osc_controller.py +++ b/omnigibson/controllers/osc_controller.py @@ -652,4 +652,6 @@ def _compute_osc_torques_numpy( # Set these as part of the backend values -add_compute_function(name="compute_osc_torques", np_function=_compute_osc_torques_numpy, th_function=_compute_osc_torques_torch) +add_compute_function( + name="compute_osc_torques", np_function=_compute_osc_torques_numpy, th_function=_compute_osc_torques_torch +) diff --git a/omnigibson/utils/transform_utils.py b/omnigibson/utils/transform_utils.py index f9db861db..ddbf4a0c2 100644 --- a/omnigibson/utils/transform_utils.py +++ b/omnigibson/utils/transform_utils.py @@ -335,7 +335,6 @@ def random_quaternion(num_quaternions: int = 1) -> torch.Tensor: return quaternions - @torch.compile def random_axis_angle(angle_limit: float = 2.0 * math.pi): """ diff --git a/omnigibson/utils/usd_utils.py b/omnigibson/utils/usd_utils.py index 0c2ff7dd5..41c847fb7 100644 --- a/omnigibson/utils/usd_utils.py +++ b/omnigibson/utils/usd_utils.py @@ -1936,4 +1936,6 @@ def _compute_relative_poses_numpy(idx, n_links, all_tfs, base_pose): # Set these as part of the backend values -add_compute_function(name="compute_relative_poses", np_function=_compute_relative_poses_numpy, th_function=_compute_relative_poses_torch) +add_compute_function( + name="compute_relative_poses", np_function=_compute_relative_poses_numpy, th_function=_compute_relative_poses_torch +)