Skip to content

Commit

Permalink
Merge pull request #622 from squarefk/replace-warn
Browse files Browse the repository at this point in the history
Replace warn with warning
  • Loading branch information
kevin-thankyou-lin authored Jan 17, 2025
2 parents e4bf2cd + 1a10769 commit dd895e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions robosuite/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
import robosuite
from robosuite.utils.log_utils import ROBOSUITE_DEFAULT_LOGGER

ROBOSUITE_DEFAULT_LOGGER.warn("No private macro file found!")
ROBOSUITE_DEFAULT_LOGGER.warn("It is recommended to use a private macro file")
ROBOSUITE_DEFAULT_LOGGER.warn("To setup, run: python {}/scripts/setup_macros.py".format(robosuite.__path__[0]))
ROBOSUITE_DEFAULT_LOGGER.warning("No private macro file found!")
ROBOSUITE_DEFAULT_LOGGER.warning("It is recommended to use a private macro file")
ROBOSUITE_DEFAULT_LOGGER.warning("To setup, run: python {}/scripts/setup_macros.py".format(robosuite.__path__[0]))
4 changes: 2 additions & 2 deletions robosuite/robots/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _postprocess_part_controller_config(self):
"""
for part_name, controller_config in self.composite_controller_config.get("body_parts", {}).items():
if not self.has_part(part_name):
ROBOSUITE_DEFAULT_LOGGER.warn(
ROBOSUITE_DEFAULT_LOGGER.warning(
f'The config has defined for the controller "{part_name}", '
"but the robot does not have this component. Skipping, but make sure this is intended."
f"Removing the controller config for {part_name} from self.part_controller_config."
Expand Down Expand Up @@ -510,7 +510,7 @@ def check_q_limits(self):
zip(self.sim.data.qpos[self._ref_joint_pos_indexes], self.sim.model.jnt_range[self._ref_joint_indexes])
):
if q_limits[0] != q_limits[1] and not (q_limits[0] + tolerance < q < q_limits[1] - tolerance):
ROBOSUITE_DEFAULT_LOGGER.warn("Joint limit reached in joint " + str(qidx))
ROBOSUITE_DEFAULT_LOGGER.warning("Joint limit reached in joint " + str(qidx))
return True
return False

Expand Down

0 comments on commit dd895e4

Please sign in to comment.