From 7dd6de5b62c6534f86314126aff91245f82612eb Mon Sep 17 00:00:00 2001
From: Nimish Santosh <nimishsantosh107@icloud.com>
Date: Fri, 13 Aug 2021 02:48:49 +0530
Subject: [PATCH] evaluator debug logs

---
 flatland/evaluators/service.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/flatland/evaluators/service.py b/flatland/evaluators/service.py
index 305ee166..92537282 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
             """
-- 
GitLab