Commit cf1cc9b7 authored by hagrid67's avatar hagrid67
Browse files

fixed more lint

parent 49627b9e
Pipeline #473 passed with stage
in 2 minutes and 44 seconds
......@@ -1041,7 +1041,10 @@ class RailEnv(Environment):
nbits = 0
tmp = self.rail.get_transitions((pos[0], pos[1]))
possible_transitions = self.rail.get_transitions((pos[0], pos[1], direction))
# print(np.sum(self.rail.get_transitions((pos[0], pos[1],direction))),self.rail.get_transitions((pos[0], pos[1],direction)),self.rail.get_transitions((pos[0], pos[1])),(pos[0], pos[1],direction))
# print(np.sum(self.rail.get_transitions((pos[0], pos[1],direction))),
# self.rail.get_transitions((pos[0], pos[1],direction)),
# self.rail.get_transitions((pos[0], pos[1])),
# (pos[0], pos[1],direction))
while tmp > 0:
nbits += (tmp & 1)
......@@ -1087,7 +1090,7 @@ class RailEnv(Environment):
if np.sum(possible_transitions) == 1:
# Checking for curves
curv_dir = np.argmax(possible_transitions)
#valid_transition = self.rail.get_transition(
# valid_transition = self.rail.get_transition(
# (pos[0], pos[1], direction),
# movement)
movement = curv_dir
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment