Skip to content

Commit

Permalink
core: Mark Core.duration as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
jara001 committed Nov 4, 2024
1 parent f21f442 commit ff9f9ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
- `uninode`:
- Support for ServiceProxy/create_client.

### Deprecated
- `uninode`:
- `Core.duration` is deprecated. Use `autopsy.duration` instead.

### Fixed
- `reconfigure`:
- Remove `**{}` to make code Py2 compatible.
Expand Down
1 change: 1 addition & 0 deletions autopsy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def ros2_only(f):
class Core(object):
"""Universal core class that supports both ROS 1 and ROS 2."""

# Deprecated: Use `autopsy.duration` instead.
duration = duration

@ros2_only
Expand Down

0 comments on commit ff9f9ac

Please sign in to comment.