dummy_observation.py 457 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
from flatland.envs.observations import ObservationBuilder

class DummyObservationBuilder(ObservationBuilder):
    """
    DummyObservationBuilder class which returns dummy observations
    This is used in the evaluation service
    """

    def __init__(self):
        super().__init__()

    def reset(self):
        pass

    def get_many(self, handles = None) -> bool:
        return True

    def get(self, handle: int = 0) -> bool:
        return True