From 17d4807660b4a5deebd02f82970cb711c50c9601 Mon Sep 17 00:00:00 2001 From: Marek Wolan Date: Thu, 7 Mar 2024 14:33:21 +0000 Subject: [PATCH] Rename configs --- .../{example_config.yaml => data_manipulation.yaml} | 0 ...mple_config_2_rl_agents.yaml => data_manipulation_marl.yaml} | 0 src/primaite/config/load.py | 2 +- src/primaite/notebooks/training_example_ray_multi_agent.ipynb | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename src/primaite/config/_package_data/{example_config.yaml => data_manipulation.yaml} (100%) rename src/primaite/config/_package_data/{example_config_2_rl_agents.yaml => data_manipulation_marl.yaml} (100%) diff --git a/src/primaite/config/_package_data/example_config.yaml b/src/primaite/config/_package_data/data_manipulation.yaml similarity index 100% rename from src/primaite/config/_package_data/example_config.yaml rename to src/primaite/config/_package_data/data_manipulation.yaml diff --git a/src/primaite/config/_package_data/example_config_2_rl_agents.yaml b/src/primaite/config/_package_data/data_manipulation_marl.yaml similarity index 100% rename from src/primaite/config/_package_data/example_config_2_rl_agents.yaml rename to src/primaite/config/_package_data/data_manipulation_marl.yaml diff --git a/src/primaite/config/load.py b/src/primaite/config/load.py index 6bd0d80d..d5acd690 100644 --- a/src/primaite/config/load.py +++ b/src/primaite/config/load.py @@ -37,7 +37,7 @@ def data_manipulation_config_path() -> Path: :return: Path to the example config. :rtype: Path """ - path = _EXAMPLE_CFG / "example_config.yaml" + path = _EXAMPLE_CFG / "data_manipulation.yaml" if not path.exists(): msg = f"Example config does not exist: {path}. Have you run `primaite setup`?" _LOGGER.error(msg) diff --git a/src/primaite/notebooks/training_example_ray_multi_agent.ipynb b/src/primaite/notebooks/training_example_ray_multi_agent.ipynb index 4ef02443..76623697 100644 --- a/src/primaite/notebooks/training_example_ray_multi_agent.ipynb +++ b/src/primaite/notebooks/training_example_ray_multi_agent.ipynb @@ -35,7 +35,7 @@ "\n", "# If you get an error saying this config file doesn't exist, you may need to run `primaite setup` in your command line\n", "# to copy the files to your user data path.\n", - "with open(PRIMAITE_PATHS.user_config_path / 'example_config/example_config_2_rl_agents.yaml', 'r') as f:\n", + "with open(PRIMAITE_PATHS.user_config_path / 'example_config/data_manipulation_marl.yaml', 'r') as f:\n", " cfg = yaml.safe_load(f)\n", "\n", "ray.init(local_mode=True)"