diff --git a/flatland/evaluators/service.py b/flatland/evaluators/service.py index 305ee166f51b12b5cc836ea02241f1e63549f0aa..92537282d1571ab14d6b009a0ec514d48bc2e6c2 100644 --- a/flatland/evaluators/service.py +++ b/flatland/evaluators/service.py @@ -10,7 +10,6 @@ import traceback import json import itertools import re -import logging import crowdai_api import msgpack @@ -662,6 +661,8 @@ class FlatlandRemoteEvaluationService: Handles a ENV_CREATE command from the client """ + print(" -- [DEBUG] [env_create] EVAL DONE: ",self.evaluation_done) + # Check if the previous episode was finished if not self.simulation_done and not self.evaluation_done: _command_response = self._error_template("CAN'T CREATE NEW ENV BEFORE PREVIOUS IS DONE") @@ -679,6 +680,8 @@ class FlatlandRemoteEvaluationService: self.state_env_timed_out = False # Check if we have finished all the available envs + print(" -- [DEBUG] [env_create] SIM COUNT: ", self.simulation_count + 1, len(self.env_file_paths)) + if self.simulation_count >= len(self.env_file_paths): self.evaluation_done = True # Hack - just ensure these are set @@ -771,6 +774,7 @@ class FlatlandRemoteEvaluationService: _command_response['payload']['info'] = _info _command_response['payload']['random_seed'] = RANDOM_SEED else: + print(" -- [DEBUG] [env_create] return obs = False (END)") """ All test env evaluations are complete """