From 49bd3b56b3e03200cab70b7666b071ab66ff0df9 Mon Sep 17 00:00:00 2001 From: Erik Nygren <erik.nygren@sbb.ch> Date: Wed, 1 May 2019 10:47:08 +0200 Subject: [PATCH] updated curve detection. There might be a bug in nbit calculation for levels generated using the editor notebook --- flatland/envs/rail_env.py | 1 - 1 file changed, 1 deletion(-) diff --git a/flatland/envs/rail_env.py b/flatland/envs/rail_env.py index 35ffdf4..f1a3d20 100644 --- a/flatland/envs/rail_env.py +++ b/flatland/envs/rail_env.py @@ -1024,7 +1024,6 @@ class RailEnv(Environment): while tmp > 0: nbits += (tmp & 1) tmp = tmp >> 1 - print(nbits) movement = direction if action == 1: movement = direction - 1 -- GitLab