Skip to content
Snippets Groups Projects
Commit e788f264 authored by Egli Adrian (IT-SCI-API-PFI)'s avatar Egli Adrian (IT-SCI-API-PFI)
Browse files

refactoring

parent 0eacd80d
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ from flatland.envs.schedule_generators import sparse_schedule_generator ...@@ -17,6 +17,7 @@ from flatland.envs.schedule_generators import sparse_schedule_generator
from flatland.utils.rendertools import RenderTool, AgentRenderVariant from flatland.utils.rendertools import RenderTool, AgentRenderVariant
# @TODO : remove (reuse existing code!!)
class GripMapOp: class GripMapOp:
def min_max_cut(min_v, max_v, v): def min_max_cut(min_v, max_v, v):
return max(min_v, min(max_v, v)) return max(min_v, min(max_v, v))
......
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