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
pranjal_dhole
Flatland
Commits
a578d2a1
Commit
a578d2a1
authored
3 years ago
by
nimishsantosh107
Browse files
Options
Downloads
Patches
Plain Diff
readded msgpack-numpy due to test dependencies
parent
aa9dd734
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
flatland/envs/persistence.py
+3
-1
3 additions, 1 deletion
flatland/envs/persistence.py
with
5 additions
and
1 deletion
.gitignore
+
2
−
0
View file @
a578d2a1
...
@@ -119,3 +119,5 @@ test_save.dat
...
@@ -119,3 +119,5 @@ test_save.dat
.visualizations
.visualizations
playground/
playground/
**/tmp
**/TEMP
\ No newline at end of file
This diff is collapsed.
Click to expand it.
flatland/envs/persistence.py
+
3
−
1
View file @
a578d2a1
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
pickle
import
pickle
import
msgpack
import
msgpack
import
msgpack_numpy
import
numpy
as
np
import
numpy
as
np
from
flatland.envs
import
rail_env
from
flatland.envs
import
rail_env
...
@@ -22,6 +23,7 @@ from flatland.envs import malfunction_generators as mal_gen
...
@@ -22,6 +23,7 @@ from flatland.envs import malfunction_generators as mal_gen
from
flatland.envs
import
rail_generators
as
rail_gen
from
flatland.envs
import
rail_generators
as
rail_gen
from
flatland.envs
import
line_generators
as
line_gen
from
flatland.envs
import
line_generators
as
line_gen
msgpack_numpy
.
patch
()
class
RailEnvPersister
(
object
):
class
RailEnvPersister
(
object
):
...
@@ -308,4 +310,4 @@ class RailEnvPersister(object):
...
@@ -308,4 +310,4 @@ class RailEnvPersister(object):
self
.
height
,
self
.
width
=
self
.
rail
.
grid
.
shape
self
.
height
,
self
.
width
=
self
.
rail
.
grid
.
shape
self
.
rail
.
height
=
self
.
height
self
.
rail
.
height
=
self
.
height
self
.
rail
.
width
=
self
.
width
self
.
rail
.
width
=
self
.
width
self
.
dones
=
dict
.
fromkeys
(
list
(
range
(
self
.
get_num_agents
()))
+
[
"
__all__
"
],
False
)
self
.
dones
=
dict
.
fromkeys
(
list
(
range
(
self
.
get_num_agents
()))
+
[
"
__all__
"
],
False
)
\ No newline at end of file
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