#1711 - Removed the legacy bools from the RLlibAgent constructor in primaite_session.py
This commit is contained in:
@@ -160,13 +160,7 @@ class PrimaiteSession:
|
||||
elif self._training_config.agent_framework == AgentFramework.RLLIB:
|
||||
_LOGGER.debug(f"PrimaiteSession Setup: Agent Framework = {AgentFramework.RLLIB}")
|
||||
# Ray RLlib Agent
|
||||
self._agent_session = RLlibAgent(
|
||||
self._training_config_path,
|
||||
self._lay_down_config_path,
|
||||
self.session_path,
|
||||
self.legacy_training_config,
|
||||
self.legacy_lay_down_config,
|
||||
)
|
||||
self._agent_session = RLlibAgent(self._training_config_path, self._lay_down_config_path, self.session_path)
|
||||
|
||||
else:
|
||||
# Invalid AgentFramework
|
||||
|
||||
@@ -20,7 +20,7 @@ def test_legacy_training_config_run_session(legacy_file):
|
||||
legacy_training_config_path = TEST_CONFIG_ROOT / "legacy_conversion" / "legacy_training_config.yaml"
|
||||
legacy_lay_down_config_path = TEST_CONFIG_ROOT / "legacy_conversion" / legacy_file
|
||||
|
||||
# Run a PrimAITE session using the paths of both the converted training and lay down config files
|
||||
# Run a PrimAITE session using legacy training and lay down config file paths
|
||||
run(
|
||||
legacy_training_config_path,
|
||||
legacy_lay_down_config_path,
|
||||
|
||||
Reference in New Issue
Block a user