Skip to content

stepable

Stepable

Bases: ABC

Base class for stepable environments.

Stepable environments are environments that can be advanced by a step. Usually, this is combined with an observable to provide a stream of data.

step() abstractmethod

Advance the environment by one step.

Source code in src/flowcean/core/environment/stepable.py
13
14
15
@abstractmethod
def step(self) -> None:
    """Advance the environment by one step."""

Finished

Bases: Exception

Exception raised when the environment is finished.

This exception is raised when the environment is finished, and no more data can be retrieved.