Skip to content

Commit 3fa4582

Browse files
committed
Update default value for randomize_topology in request_game_reset method
1 parent 4558e31 commit 3fa4582

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

agents/base_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ def register(self)->Observation:
162162
except Exception as e:
163163
self._logger.error(f'Exception in register(): {e}')
164164

165-
def request_game_reset(self, request_trajectory=False, randomize_topology=False) -> Observation:
165+
def request_game_reset(self, request_trajectory=False, randomize_topology=True) -> Observation:
166166
"""
167167
Requests a game reset from the server. Optionally requests a trajectory and/or topology randomization.
168168
Args:
169169
request_trajectory (bool): If True, requests the server to provide a trajectory of the last episode.
170-
randomize_topology (bool): If True, requests the server to randomize the network topology for the next episode.
170+
randomize_topology (bool): If True, requests the server to randomize the network topology for the next episode. Defaults to True.
171171
Returns:
172172
Observation: The initial observation after the reset if successful, None otherwise.
173173
"""

0 commit comments

Comments
 (0)