Skip to content

Commit

Permalink
Change print to warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzakka committed Sep 24, 2024
1 parent 106a522 commit 3a7b37f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

## Unreleased

### Changed

- Changed `print` statement in `Configuration::check_limits` to `logging.warning`.

### Added

- Examples:
Expand Down
3 changes: 2 additions & 1 deletion mink/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import mujoco
import numpy as np
import logging

from . import constants as consts
from . import exceptions
Expand Down Expand Up @@ -103,7 +104,7 @@ def check_limits(self, tol: float = 1e-6, safety_break: bool = True) -> None:
model=self.model,
)
else:
print(
logging.warning(
f"Value {qval:.2f} at index {jnt} is outside of its limits: "
f"[{qmin:.2f}, {qmax:.2f}]"
)
Expand Down

0 comments on commit 3a7b37f

Please sign in to comment.