Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 17, 2024
1 parent 40cc3f0 commit f455421
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion omnigibson/controllers/null_joint_controller.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from omnigibson.controllers.controller_base import _controller_backend as cb
from omnigibson.controllers import JointController
from omnigibson.controllers.controller_base import _controller_backend as cb


class NullJointController(JointController):
Expand Down
3 changes: 2 additions & 1 deletion omnigibson/robots/articulated_trunk_robot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import torch as th
from functools import cached_property

import torch as th

from omnigibson.robots.manipulation_robot import ManipulationRobot
from omnigibson.utils.python_utils import classproperty
from omnigibson.utils.usd_utils import ControllableObjectViewAPI
Expand Down
2 changes: 1 addition & 1 deletion omnigibson/robots/behavior_robot.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import itertools
from functools import cached_property
import math
import os
from abc import ABC
from collections import OrderedDict
from functools import cached_property
from typing import Iterable, List, Literal, Tuple

import torch as th
Expand Down
1 change: 1 addition & 0 deletions omnigibson/utils/python_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,7 @@ def recursively_convert_to_torch(state):
def recursively_convert_from_torch(state):
# For all the lists in state dict, convert from torch tensor -> numpy array
import numpy as np

for key, value in state.items():
if isinstance(value, dict):
state[key] = recursively_convert_from_torch(value)
Expand Down

0 comments on commit f455421

Please sign in to comment.