Skip to content

Commit

Permalink
Add deprecation warning to the Sequential component
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 686609154
Change-Id: Iecc257ee4f220ff4e26c478a824ccc8922de73a6
  • Loading branch information
jzleibo authored and copybara-github committed Oct 16, 2024
1 parent 593e140 commit f73f42f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions concordia/components/sequential.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

from typing import Sequence

from absl import logging
from concordia.typing import component
from concordia.utils import helper_functions

Expand All @@ -26,6 +27,10 @@ class Sequential(component.Component):
def __init__(self, name: str, components: Sequence[component.Component]):
self._components = components
self._name = name
logging.warn(
'The Sequential component is deprecated. Please use Entity Components '
'and specifically `action_spec_ignored` to achieve the same effect '
'as the old Sequential component.')

def update(self) -> None:
for comp in self._components:
Expand Down

0 comments on commit f73f42f

Please sign in to comment.