Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flatland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yoogottamk
Flatland
Commits
778c2585
Commit
778c2585
authored
5 years ago
by
Erik Nygren
Browse files
Options
Downloads
Patches
Plain Diff
renaming
parent
1dbe1174
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_flatland_schedule_from_file.py
+0
-0
0 additions, 0 deletions
tests/test_flatland_schedule_from_file.py
tests/test_utils.py
+3
-7
3 additions, 7 deletions
tests/test_utils.py
with
3 additions
and
7 deletions
tests/test_flatland_schedule_
generators
.py
→
tests/test_flatland_schedule_
from_file
.py
+
0
−
0
View file @
778c2585
File moved
This diff is collapsed.
Click to expand it.
tests/test_utils.py
+
3
−
7
View file @
778c2585
...
...
@@ -3,15 +3,13 @@ from typing import List, Tuple, Optional
import
numpy
as
np
from
attr
import
attrs
,
attrib
from
flatland.envs.malfunction_generators
import
MalfunctionParameters
,
malfunction_from_params
from
flatland.envs.rail_generators
import
RailGenerator
from
flatland.envs.schedule_generators
import
ScheduleGenerator
from
flatland.core.grid.grid4
import
Grid4TransitionsEnum
from
flatland.envs.agent_utils
import
EnvAgent
,
RailAgentStatus
from
flatland.envs.malfunction_generators
import
MalfunctionParameters
,
malfunction_from_params
from
flatland.envs.rail_env
import
RailEnvActions
,
RailEnv
from
flatland.envs.rail_generators
import
RailGenerator
from
flatland.envs.schedule_generators
import
ScheduleGenerator
from
flatland.utils.rendertools
import
RenderTool
...
...
@@ -139,8 +137,6 @@ def run_replay_config(env: RailEnv, test_configs: List[ReplayConfig], rendering:
def
create_and_save_env
(
file_name
:
str
,
schedule_generator
:
ScheduleGenerator
,
rail_generator
:
RailGenerator
):
stochastic_data
=
MalfunctionParameters
(
malfunction_rate
=
1000
,
# Rate of malfunction occurence
min_duration
=
15
,
# Minimal duration of malfunction
max_duration
=
50
# Max duration of malfunction
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment