#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:
|
elif self._training_config.agent_framework == AgentFramework.RLLIB:
|
||||||
_LOGGER.debug(f"PrimaiteSession Setup: Agent Framework = {AgentFramework.RLLIB}")
|
_LOGGER.debug(f"PrimaiteSession Setup: Agent Framework = {AgentFramework.RLLIB}")
|
||||||
# Ray RLlib Agent
|
# Ray RLlib Agent
|
||||||
self._agent_session = RLlibAgent(
|
self._agent_session = RLlibAgent(self._training_config_path, self._lay_down_config_path, self.session_path)
|
||||||
self._training_config_path,
|
|
||||||
self._lay_down_config_path,
|
|
||||||
self.session_path,
|
|
||||||
self.legacy_training_config,
|
|
||||||
self.legacy_lay_down_config,
|
|
||||||
)
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Invalid AgentFramework
|
# 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_training_config_path = TEST_CONFIG_ROOT / "legacy_conversion" / "legacy_training_config.yaml"
|
||||||
legacy_lay_down_config_path = TEST_CONFIG_ROOT / "legacy_conversion" / legacy_file
|
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(
|
run(
|
||||||
legacy_training_config_path,
|
legacy_training_config_path,
|
||||||
legacy_lay_down_config_path,
|
legacy_lay_down_config_path,
|
||||||
|
|||||||
Reference in New Issue
Block a user