Skip to content
Snippets Groups Projects
Commit 6bc089c8 authored by u229589's avatar u229589
Browse files

Refactoring: call constructor of BaseClass

parent a5ea6879
No related branches found
No related tags found
No related merge requests found
...@@ -35,9 +35,6 @@ class PredictionBuilder: ...@@ -35,9 +35,6 @@ class PredictionBuilder:
Parameters Parameters
---------- ----------
custom_args: dict
Implementation-dependent custom arguments, see the sub-classes.
handle : int, optional handle : int, optional
Handle of the agent for which to compute the observation vector. Handle of the agent for which to compute the observation vector.
......
...@@ -24,8 +24,6 @@ class DummyPredictorForRailEnv(PredictionBuilder): ...@@ -24,8 +24,6 @@ class DummyPredictorForRailEnv(PredictionBuilder):
Parameters Parameters
---------- ----------
custom_args: dict
Not used in this dummy implementation.
handle : int, optional handle : int, optional
Handle of the agent for which to compute the observation vector. Handle of the agent for which to compute the observation vector.
...@@ -87,9 +85,8 @@ class ShortestPathPredictorForRailEnv(PredictionBuilder): ...@@ -87,9 +85,8 @@ class ShortestPathPredictorForRailEnv(PredictionBuilder):
The prediction acts as if no other agent is in the environment and always takes the forward action. The prediction acts as if no other agent is in the environment and always takes the forward action.
""" """
def __init__(self, max_depth=20): def __init__(self, max_depth: int = 20):
# Initialize with depth 20 super().__init__(max_depth)
self.max_depth = max_depth
def get(self, handle: int = None): def get(self, handle: int = None):
""" """
...@@ -98,8 +95,6 @@ class ShortestPathPredictorForRailEnv(PredictionBuilder): ...@@ -98,8 +95,6 @@ class ShortestPathPredictorForRailEnv(PredictionBuilder):
Parameters Parameters
---------- ----------
custom_args: dict
- distance_map : dict
handle : int, optional handle : int, optional
Handle of the agent for which to compute the observation vector. Handle of the agent for which to compute the observation vector.
......
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