Skip to content

Commit

Permalink
Avoid deprecated logging.warn function
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 704268444
Change-Id: I1e397e0e1c81ee325888de2e1ab88c4c4ab4e3db
  • Loading branch information
jagapiou authored and copybara-github committed Dec 9, 2024
1 parent b1486ac commit 18451dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion concordia/components/sequential.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Sequential(component.Component):
def __init__(self, name: str, components: Sequence[component.Component]):
self._components = components
self._name = name
logging.warn(
logging.warning(
'The Sequential component is deprecated. Please use Entity Components '
'and specifically `action_spec_ignored` to achieve the same effect '
'as the old Sequential component.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _get_earliest_timepoint(
'time', ascending=True)
return sorted_memories_data_frame['time'][0]
else:
absl_logging.warn('No memories found in memory bank.')
absl_logging.warning('No memories found in memory bank.')
return datetime.datetime.now()


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _get_earliest_timepoint(
'time', ascending=True)
return sorted_memories_data_frame['time'][0]
else:
absl_logging.warn('No memories found in memory bank.')
absl_logging.warning('No memories found in memory bank.')
return datetime.datetime.now()


Expand Down

0 comments on commit 18451dc

Please sign in to comment.