Skip to content
Snippets Groups Projects
Commit d2c8dd24 authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

print to warning change

parent 76983c9e
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ def sparse_schedule_generator(speed_ratio_map: Mapping[float, float] = None) -> ...@@ -83,7 +83,7 @@ def sparse_schedule_generator(speed_ratio_map: Mapping[float, float] = None) ->
if not rail.check_path_exists(start[0], agent_orientation, target[0]): if not rail.check_path_exists(start[0], agent_orientation, target[0]):
agent_orientation = (agent_orientation + 2) % 4 agent_orientation = (agent_orientation + 2) % 4
if not (rail.check_path_exists(start[0], agent_orientation, target[0])): if not (rail.check_path_exists(start[0], agent_orientation, target[0])):
print("Infeasible") warnings.warn("Infeasible")
agents_position.append((start[0][0], start[0][1])) agents_position.append((start[0][0], start[0][1]))
agents_target.append((target[0][0], target[0][1])) agents_target.append((target[0][0], target[0][1]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment