Commit 97fc8574 authored by nilabha's avatar nilabha

changed name from malfunction_generator to malfunction_rate

parent 2656b6b1
Pipeline #5382 failed with stage
in 2 minutes and 56 seconds
...@@ -60,7 +60,7 @@ class FlatlandSingle(gym.Env): ...@@ -60,7 +60,7 @@ class FlatlandSingle(gym.Env):
malfunction_generator = no_malfunction_generator() malfunction_generator = no_malfunction_generator()
if {'malfunction_rate', 'min_duration', 'max_duration'} <= self._config.keys(): if {'malfunction_rate', 'min_duration', 'max_duration'} <= self._config.keys():
stochastic_data = MalfunctionParameters( stochastic_data = MalfunctionParameters(
malfunction_generator=self._config['malfunction_rate'], malfunction_rate=self._config['malfunction_rate'],
min_duration=self._config['malfunction_min_duration'], min_duration=self._config['malfunction_min_duration'],
max_duration=self._config['malfunction_max_duration'] max_duration=self._config['malfunction_max_duration']
) )
......
...@@ -82,7 +82,7 @@ class FlatlandSparse(FlatlandBase): ...@@ -82,7 +82,7 @@ class FlatlandSparse(FlatlandBase):
malfunction_generator = no_malfunction_generator() malfunction_generator = no_malfunction_generator()
if {'malfunction_rate', 'malfunction_min_duration', 'malfunction_max_duration'} <= self._config.keys(): if {'malfunction_rate', 'malfunction_min_duration', 'malfunction_max_duration'} <= self._config.keys():
stochastic_data = MalfunctionParameters( stochastic_data = MalfunctionParameters(
malfunction_generator=self._config['malfunction_rate'], malfunction_rate=self._config['malfunction_rate'],
min_duration=self._config['malfunction_min_duration'], min_duration=self._config['malfunction_min_duration'],
max_duration=self._config['malfunction_max_duration'] max_duration=self._config['malfunction_max_duration']
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment