debug/timeout (#59)

This commit is contained in:
tsuky_chen
2024-07-24 08:31:42 +08:00
committed by GitHub
parent c7e3004456
commit 1fd8b66fde
2 changed files with 0 additions and 11 deletions

View File

@@ -7,14 +7,6 @@ from wrapt_timeout_decorator import *
logger = logging.getLogger("desktopenv.experiment")
# Open the JSON file
with open("./settings.json", "r") as file:
# Load the JSON data from the file
data = json.load(file)
time_limit = data["time_limit"]
@timeout(time_limit, use_signals=False)
def run_single_example(agent, env, example, max_steps, instruction, args, example_result_dir, scores):
agent.reset()
obs = env.reset(task_config=example)

View File

@@ -1,3 +0,0 @@
{
"time_limit": "3600"
}